469,352 Members | 1,661 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

What is the math behind the sessionid?

I'm wondering how unique the sessionid is in ASP. What is the math
behind it's creation, and what are the probobolities of it being
reproduced, i.e. 1/10000? or 1 in twenty million? Can someone give me
some guidance on this? I'm trying to create some unique numbers for
data assignement, and would like a way that does not replicate.

Thanks,

Bill
Jul 19 '05 #1
2 1620
Where are you storing the data?

Also, for creating unique IDs, you can use functions to return a GUID.

Cheers
Ken

"Bill" <bi***********@gospellight.com> wrote in message
news:8d**************************@posting.google.c om...
: I'm wondering how unique the sessionid is in ASP. What is the math
: behind it's creation, and what are the probobolities of it being
: reproduced, i.e. 1/10000? or 1 in twenty million? Can someone give me
: some guidance on this? I'm trying to create some unique numbers for
: data assignement, and would like a way that does not replicate.
:
: Thanks,
:
: Bill
Jul 19 '05 #2
The Session ID's aren't intended to be unique for ever. Only as long as a
session is active. If you want unique values, you have a few choices, GUIDs
(as Chris suggested) or my favorite, incrementing numbers.

"Bill" <bi***********@gospellight.com> wrote in message
news:8d**************************@posting.google.c om...
I'm wondering how unique the sessionid is in ASP. What is the math
behind it's creation, and what are the probobolities of it being
reproduced, i.e. 1/10000? or 1 in twenty million? Can someone give me
some guidance on this? I'm trying to create some unique numbers for
data assignement, and would like a way that does not replicate.

Thanks,

Bill

Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Andy Fish | last post: by
2 posts views Thread by XML newbie: Urgent pls help! | last post: by
11 posts views Thread by David Thielen | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.