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
Printable View
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
hi, what context do you mean?
I mean like they do on this page:
http://www.idealbb.com/default.asp?sessionID=
David
Hi , if you want to kill your session you could go Session.Abandon and then response.redirect to the page that was requested.
Yes, I already knew that :D
But how do I create the unique value in the first place ??
David
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
okay...
but how do I print the unique session value ?
David
Response.Write Session.SessionID
Regards
Mark
ahh!! :)
thanks!
I guess I should have known that :rolleyes:
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
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