|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
||||
|
||||
|
Re: SP doesn't return SessionID
Quote:
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... |
|
#4
|
||||
|
||||
|
Re: Re: SP doesn't return SessionID
Quote:
yeah - lcase is the way to go |
|
#5
|
|||
|
|||
|
re
I'm talking about the article 'Session Replacement in ASP
' by Rogier Doekes on June 18th |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > SP doesn't return SessionID |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|