Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old June 19th, 2003, 09:32 AM
LenM22z LenM22z is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 2 LenM22z User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy SP doesn't return SessionID

I set this all up and tried logging in.
If the login is incorrect I get -1 back from the checkLogin sp as expected, but if its correct I get an error on this line of 'login.asp':

sSessionID = oRs.Fields(0).Value

Error: Object can't be found in collection requested by name or ordinal.

I ran the checkLogin sp in the query analyzer and it works right.

What do you think?

Also I was wondering why you run the LCase() function on the user id before passing it to the sp?

Thanks
Len

Reply With Quote
  #2  
Old June 19th, 2003, 07:49 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
You need to click on the link @ the end of the article, so we know what you are talking about!

or just post the link in your next post
__________________
DevArticles Moderator
BlueSix - Web Development and Consulting

Reply With Quote
  #3  
Old June 19th, 2003, 10:33 PM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Re: SP doesn't return SessionID

Quote:
Originally posted by LenM22z
I set this all up and tried logging in.
If the login is incorrect I get -1 back from the checkLogin sp as expected, but if its correct I get an error on this line of 'login.asp':

sSessionID = oRs.Fields(0).Value

Error: Object can't be found in collection requested by name or ordinal.

I ran the checkLogin sp in the query analyzer and it works right.

What do you think?

Also I was wondering why you run the LCase() function on the user id before passing it to the sp?

Thanks
Len


Well I can answer the part about the LCase() function... you run this so that it doesn't matter what the user typed in, it will always be lowercase, it eliminates the problem of case sensitivity.. it also limits the userid to be only assigned to one person..

ie:

Nicat23 couldn't also be nicat23 (notice the difference in the cases?) if you dont use the lcase() function it can allow duplicate instances depending on how you do your coding.. Hope that helps...

Reply With Quote
  #4  
Old June 19th, 2003, 10:47 PM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 6 m 11 sec
Reputation Power: 8
Send a message via ICQ to stumpy Send a message via MSN to stumpy
Re: Re: SP doesn't return SessionID

Quote:
Originally posted by nicat23
it eliminates the problem of case sensitivity.. it also limits the userid to be only assigned to one person..
unless of course, you are using vBulletin....

yeah - lcase is the way to go

Reply With Quote
  #5  
Old June 20th, 2003, 08:35 AM
LenM22z LenM22z is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 2 LenM22z User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
re

I'm talking about the article 'Session Replacement in ASP
' by Rogier Doekes on June 18th

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > SP doesn't return SessionID


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway