Nickz
Nickz

Reputation: 1880

ASP.NET SessionID type

I was wondering if anyone knew what was the format of a ASP.NET SessionID? It's not a GUID or base64, what is its type? Also does it vary from version to version of the .NET framework?

thanks

Upvotes: 4

Views: 3694

Answers (1)

David
David

Reputation: 73594

Edited. Revised from my original dumb answer.

The documentation just says it's randomly asigned by ASP.NET. http://msdn.microsoft.com/en-us/library/system.web.sessionstate.httpsessionstate.sessionid.aspx

Another page gives a bit more detail.

The ASP.NET session identifier is a randomly generated number encoded into a 24-character string consisting of lowercase characters from a to z and numbers from 0 to 5.

Upvotes: 10

Related Questions