what is the maximum lenght of sessions ASP.net 4.0 session ID – store as varchar or char or nvarchar?

I checked my own server session Ids and they are all 24 characters

I am storing each logged in person session Id at my sql server

  • Using if-else in where clause in SQL Server 2008
  • Is this sufficient to prevent query injection while using SQL Server?
  • Round off Value in sql query
  • Removing the remembered login and password list in SQL Server Management Studio
  • SqlServer: Login failed for user
  • Custom Entity Framework many-to-many navigation property
  • So my question is

    having a column

    char(24) is enough for storing SessionIds of visitors ?

    ASP.net 4.0

    Session kept as : State Server tcpip=127.0.0.1:42424
    

  • Sql fetch data with join
  • Is it necessary to create ASP.NET 4.0 SQL session state database, distinct from existing ASP.NET 2.0 ASPState DB?
  • Search multiple column using multiple control in asp.net using linq
  • Sql Injection : Data Appended automatically to table column
  • ASP.NET - Insert data into an SQL server database when a field has been filled in and a button clicked?
  • How can I clear out duplicate entries in an archived records table
  • One Solution collect form web for “what is the maximum lenght of sessions ASP.net 4.0 session ID – store as varchar or char or nvarchar?”

    Putting aside whether you should be doing this or not, the SessionIDManager enforces an 80-character limit on session IDs.

    http://msdn.microsoft.com/en-us/library/system.web.sessionstate.sessionidmanager.sessionidmaxlength(v=vs.100).aspx

    MS SQL Server is a Microsoft SQL Database product, include sql server standard, sql server management studio, sql server express and so on.