Hi there,
IIS doesn't hand out IDs; it's ASP or ASP.NET that does that. However, unique as the ASP.NET Session ID may look, I don't think it's guaranteed to be unique.
Creating a Guid is simple. In .NET you can do this:
Guid myGuid = Guid.NewGuid(); // C#
Dim myGuid As Guid = Guid.NewGuid() '
VB
In SQL Server, you can use SELECT NewId()
In all cases, you get a globally unique ID.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of
ASP.NET 2.0 Instant Results and
Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.