2

I have implemented SQL Server session mode for an asp.net application.

<sessionState mode="SQLServer" compressionEnabled="true" 
        sqlConnectionString="Data Source=.;User ID=xxxx;Password=yyyyy;Integrated Security=False;" 
        sqlCommandTimeout="240" allowCustomSqlDatabase="true" cookieless="false" />

I created a variable in the Session_Start in the global.asax file:

var sessionID = Session.SessionID;

I found the following data while debugging the application:

ASP.NET generated : lehxv4so4ioi2gqqaxtjzhyo
SQL Server saved  : lehxv4so4ioi2gqqaxtjzhyo84497b6f

Can anyone let me know what is reason for the different results as mentioned above.

Santosh Panda
  • 7,235
  • 8
  • 43
  • 56
santosh kumar patro
  • 7,231
  • 22
  • 71
  • 143

1 Answers1

4

lehxv4so4ioi2gqqaxtjzhyo84497b6f

in bold is your sessionid and in italics is the application id

the extra 8 bytes are the applicationid

dexter
  • 1,217
  • 9
  • 12