By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,851 Members | 1,121 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,851 IT Pros & Developers. It's quick & easy.

Session ID's - Are these guaranteed unique

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.