What is the Asp.net SessionID string format?

I want to use Session.SessionID as the file name and query string in the URL. I want to know if its format is suitable for these applications. For example, you cannot use the characters '?' or '<' in the file name.

Is SessionID format string safe for file names and query strings?

+7
source share
2 answers

From this MSDN link

 "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." 

So, the answer: Yes, and it is safe for file names and query strings

+12
source

Session id is ok to use it only string without any weird characters

0
source

All Articles