Question

Is it 32 bit, or 64 bit or 128 bit or bigger?

Was it helpful?

Solution

It's neither int nor guid; from the MSDN help file...

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.

OTHER TIPS

The reason for the extra 8 characters in the database vs what you get in code is the application id. In the database the session is appended with the tempApplicationID from ASPStateTempApplications table. This is why you get 24 characters in code, and 32 in the db.

I would go with 88 bytes. If you look at the ASP.NET state database, that is how it is defined.

Because it's generated as a System.Guid Valuetype, it's a 128-bit integer, which is 16 bytes.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top