473,396 Members | 1,997 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,396 software developers and data experts.

Session ID's - Are these guaranteed unique

Are IIS session ID's guaranteed to be unique forever, like GUID's. Ie, would
it be safe to assume that a session ID is not ever going to be used again or
recycled? I want to track user activity on a web-site by storing the session
id and activity in a Sql Server database. Oviously if a session Id is used
more than once over a given time period, then the reporting is going to be
inaccurate.

Ben

Nov 19 '05 #1
2 2252
Ben,

I think this article will answer all your questions about session ids:

http://support.microsoft.com/?kbid=899918
--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Ben Fidge" <be*******@btopenworld.com> wrote in message
news:uf**************@TK2MSFTNGP11.phx.gbl...
Are IIS session ID's guaranteed to be unique forever, like GUID's. Ie,
would it be safe to assume that a session ID is not ever going to be used
again or recycled? I want to track user activity on a web-site by storing
the session id and activity in a Sql Server database. Oviously if a
session Id is used more than once over a given time period, then the
reporting is going to be inaccurate.

Ben

Nov 19 '05 #2
It's guaranteed to be unique, as long as the server is not rebooted.

If the server is rebooted, there's a microscopically
small chance that the same Session ID will be used.

There's an algorithm which changes the Session ID
enumeration sequence with every bootup.

In practice, it's almost assured that the Session IDs
are unique, even across bootups.


Juan T. Llibre
ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
==========================

"Ben Fidge" <be*******@btopenworld.com> wrote in message
news:uf**************@TK2MSFTNGP11.phx.gbl...
Are IIS session ID's guaranteed to be unique forever, like GUID's. Ie, would it be safe
to assume that a session ID is not ever going to be used again or recycled? I want to
track user activity on a web-site by storing the session id and activity in a Sql Server
database. Oviously if a session Id is used more than once over a given time period, then
the reporting is going to be inaccurate.

Ben

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Brad | last post by:
Hi everyone, I've been using ASP on a few different projects over the past year, either using Javascript or VBScript. During that time, I've made use of session variables, but even then, I've...
2
by: Bonj | last post by:
H I've got the following problem - I need to have an aspx page with two frames, although the question isn't necessarily about the workings of the frames, more session variables... the frames consist...
4
by: RCS | last post by:
We have sort of a centralized single-signon written in ASP.NET for all of our legacy ASP and ASP.NET apps.. There are around 1200 users and something like 2 dozen apps. Everyonce in a while, a user...
5
by: Newton | last post by:
Hi, I got here the following problem. I am programming web application for examing students. After student will log on I need to keep his ID, Privileges, Login, Password for manipulating with...
5
by: Grey | last post by:
How long of the SessionID created as I need to store in Access DB, is it possible? Can I use it as unique identifier for creating a record in DB as primary key?? Million Thanks
20
by: p175 | last post by:
Hi people, I have a stored procedure that creates many Global temporary session tables. Into each of these tables go the results of various processing using relational division all keyed and...
26
by: BillE | last post by:
Some ASP.NET applications use Session Variables extensively to maintain state. These should be re-written to use viewstate, hidden fields, querystring, etc. instead. This is because if a user...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
14
by: howa | last post by:
For example, if two hosts arrive a server at the same time (microtime), and using the same IP via NAT, and may be even lucky enough to have the same random number How PHP make them to use...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.