Facts to be remember. While dealing with session always keep below factfile into consideration.
I created a variable in the
Session_Start
in the global.asax
file:var sessionID = Session.SessionID;
ASP.NET generated : lehxv4so4ioi2gqqaxtjzhyo
SQL Server saved : lehxv4so4ioi2gqqaxtjzhyo84497b6f
lehxv4so4ioi2gqqaxtjzhyo84497b6f
in bold is your sessionid and in italics is the application id
the extra 8 bytes are the applicationid
SQL Server Session Tables
ASPStateTempSessions
ASPStateTempApplications
SQL Server Session Database
tempdb database in SQL Server by default
- Very Very Imp never use Tempdb for outproc session.
- In out proc mode session_end never calls, no use if you apply any debug or diagnostics pointers.
If we using webfarm and out proc session, ensure machine key across server instance is unique.
http://www.codeproject.com/Articles/104082/Configuring-ASP-session-state-on-SQL-server
http://stackoverflow.com/questions/22228972/strange-timeout-in-sitecore-7
http://blogs.msdn.com/b/akshayns/archive/2008/09/29/common-reasons-for-the-session-loss-issue-in-asp-net-applications.aspx
Cookie Container
http://www.developer.com/net/asp/article.php/10917_3595766_3/Storing-Session-State-in-a-SQL-Server-Database.htm
http://weblogs.asp.net/stevewellens/using-session-state-in-a-web-service
http://weblogs.asp.net/jongalloway/10-things-asp-net-developers-should-know-about-web-config-inheritance-and-overrides
http://www.c-sharpcorner.com/UploadFile/1d42da/using-session-state-in-a-web-service/
http://blogs.msdn.com/b/tess/archive/2008/11/06/troubleshooting-appdomain-restarts-and-other-issues-with-etw-tracing.aspx
http://www.codeproject.com/Articles/35119/Using-Session-State-in-a-Web-Service
http://msdn.microsoft.com/en-us/library/aa480509.aspx
http://seejoelprogram.wordpress.com/2008/11/10/maintaining-aspnet-session-state-in-an-ajax-application/
http://stackoverflow.com/questions/24707339/how-to-make-a-session-enabled-asp-net-web-service-work-with-an-ajax-client-in-a
http://devpinoy.org/blogs/willydavidjr/archive/2008/06/13/using-asp-net-session-state-in-a-web-service.aspx
No comments :
Post a Comment