473,324 Members | 2,193 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

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 1695
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: John | last post by:
Hi all... Either I'm doing really something really stupid - or maybe there is some bug somewhere (optimizing?). In a function I have: int x1, y1, x2, y2; float dR, dX, dY; dR =...
2
by: Berrucho | last post by:
Please Help! I recently posted this same issue but got no answer... please help Using VB.NET, IIS5, W2K Adv SP3 all patches, .net 1.0, VS.NET 2002 Using forms authentication, persistent cookie...
6
by: Mike Kline | last post by:
Hi There! I'm creating a HttpModule and after AcquireRequestState event, I tried to access the HttpApplication.Session.SessionID and somehow I'm getting a new value on every Refersh of ASPX...
4
by: Andy Fish | last post by:
Hi, I have an asp.net application that is using Forms Authentication and maintaining http session state using cookies in the normal way. when the user clicks the logout button I do this: ...
2
by: XML newbie: Urgent pls help! | last post by:
If I get SessionID in 1 function how do I carry that SessionID(value of this SessionID) to another function or another form within the same project
11
by: David Thielen | last post by:
Hi; Is there some kind of session ID variable that I can get in the code behind and that is available in Session_OnEnd() to know what session ended? -- thanks - dave...
10
by: rlueneberg | last post by:
I am trying to foward the old sessionID using "Session.SessionID" to an HttpWebRequest CookieContainer so that I can capture the requested page session variables but it is not working as it is...
1
by: mitra4umohit | last post by:
Hi, I am novice user of JavaScript. I have written one jsp with java script as given below. On click on hyperlink "User Link" my FireFox firebug says "document.frm has no properties" code...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.