Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > What is the math behind the sessionid?

Reply
Thread Tools

What is the math behind the sessionid?

 
 
Bill
Guest
Posts: n/a
 
      07-16-2003
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
 
Reply With Quote
 
 
 
 
Ken Schaefer
Guest
Posts: n/a
 
      07-16-2003
Where are you storing the data?

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

Cheers
Ken

"Bill" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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


 
Reply With Quote
 
 
 
 
Tom B
Guest
Posts: n/a
 
      07-17-2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Math.random() and Math.round(Math.random()) and Math.floor(Math.random()*2) VK Javascript 15 05-02-2010 03:43 PM
Math.min and Math.max for byte / short Philipp Java 9 07-23-2008 12:37 AM
math.h trig functions questions (and some forgotten high school math) Mark Healey C Programming 7 05-22-2006 10:42 AM
Re: Is still math.h the C++ math library ? AciD_X C++ 4 04-01-2004 07:29 PM
Why can I not use: Math a=new Math(); chirs Java 18 03-02-2004 06:00 PM



Advertisments