RE: Need ASP script to Generate Unique Session ID
- From: Dan Thompson <DanThompson@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 7 Dec 2009 11:19:02 -0800
I thought I would clarify more what I am looking for so here is the deal.
I already have a Login.asp page where the user can type in login information
then I have a verify.asp page that verify's the user login info with the
username and password information in MySQL database.
The problem is I need a unique user ID and I could just use some sort of
random user ID number generator function into MySQL as a primary key (userID)
but once the number has been generated for new user that has been added to
MySQL database that user ID is going to be the same for as long as the user
exists in the database.
I would much rather just have my verify page verify that the username and
password are correct and than have ASP assign a session ID to that user for
the duration that they are on my website that way it is more secure and less
likely that someone could guess the URL as the session ID number would only
be valid for the duration that the proper user is logged into the site and
would be a different number the next time that same user log's into the site.
Please can anyone help with this question ?
Dan Thompson
"Dan Thompson" wrote:
Hello I am still quite new to ASP and I am wondering if anyone can help ?.
I am trying to write a ASP script to put into my website that will generate
a random and unique Session ID that is stored in a cookie on the clients end
for the duration of time they are logged into my website. Can anyone provide
me with a simple ASP script to do this or at least provide some insight on
how to go about doing this ?
Dan Thompson
- Follow-Ups:
- Re: Need ASP script to Generate Unique Session ID
- From: Neil Gould
- RE: Need ASP script to Generate Unique Session ID
- From: Evertjan.
- Re: Need ASP script to Generate Unique Session ID
- References:
- Need ASP script to Generate Unique Session ID
- From: Dan Thompson
- Need ASP script to Generate Unique Session ID
- Prev by Date: Re: Need ASP script to Generate Unique Session ID
- Next by Date: Preventing bots?
- Previous by thread: Re: Need ASP script to Generate Unique Session ID
- Next by thread: RE: Need ASP script to Generate Unique Session ID
- Index(es):
Relevant Pages
|