Asp.net SessionID的字符串格式是什么?

Bob*_*obs 9 c# asp.net session string-formatting sessionid

我想Session.SessionID在URL中使用as文件名和查询字符串.我想知道它的格式是否适合这些应用程序.例如,您不能在文件名中使用'?'或使用'<'字符.

SessionID格式字符串对文件名和查询字符串是否安全?

Pra*_*nam 15

这个MSDN链接

"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."
Run Code Online (Sandbox Code Playgroud)

所以答案是,是的,可以安全地用于文件名和查询字符串