|
-
Oct 16th, 2001, 09:03 AM
#1
Thread Starter
Member
How to create unique sessions ?
How do I create dynamic, unique sessions ?
Can it even be done and how hard is it ?
I do not want to use the application-scope...
David
"There are no must's in life unless you provide for someone else than yourself"
-
Oct 16th, 2001, 09:14 AM
#2
Hyperactive Member
hi, what context do you mean?
-
Oct 16th, 2001, 09:18 AM
#3
Thread Starter
Member
"There are no must's in life unless you provide for someone else than yourself"
-
Oct 16th, 2001, 09:22 AM
#4
Hyperactive Member
Hi , if you want to kill your session you could go Session.Abandon and then response.redirect to the page that was requested.
-
Oct 16th, 2001, 09:26 AM
#5
Thread Starter
Member
Yes, I already knew that
But how do I create the unique value in the first place ??
David
"There are no must's in life unless you provide for someone else than yourself"
-
Oct 16th, 2001, 09:41 AM
#6
Hyperactive Member
Oh ok, the uniques session value is automatically made by the server when a user connects (Session starts). If you want to create a unique value manually you can abort the session and then when you go to the next page the server will give you a new session id.
HTH
Mark
-
Oct 16th, 2001, 10:35 AM
#7
Thread Starter
Member
okay...
but how do I print the unique session value ?
David
"There are no must's in life unless you provide for someone else than yourself"
-
Oct 16th, 2001, 10:40 AM
#8
Hyperactive Member
Response.Write Session.SessionID
Regards
Mark
-
Oct 16th, 2001, 10:51 AM
#9
Thread Starter
Member
ahh!! 
thanks!
I guess I should have known that
You don't happen to know if there actually is a way of creating your own unique session values ?
First I thought that a had the solution, which was:
use IP address and datestamp and then squeeze them together.
But that solutions fails if 2 persons (on the same company that uses only ONE IP address external but more than one internal) enters my page EXACTLY the same time. I still don't know if it's possible to do what I try to achieve.
Anyhow, thanks again!
David
"There are no must's in life unless you provide for someone else than yourself"
-
Oct 16th, 2001, 10:55 AM
#10
Hyperactive Member
Yeah, I actually do 
Use the session id concatenated with the date and time stamp.
No server will assign the same session id while a person is on the server at the same time.
I actually used this in a webfarm format and it worked fine
Cheers
Mark
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|