Arrao4u

…a blog by Rama Rao

Archive for the ‘1. Session Part1’ Category

Session Part1

Posted by arrao4u on December 20, 2009

NameSpaces for Session:

System.Web.SessionState.HttpSessionState

better to use httpcontext since sessionstate may not always be available to

the calling module. for instance, in httpmodules, class files it may not be available.

System.Web.HttpContext.Current.Session

Session ID in ASP.Net

Asp.Net use 120 bit identifier to track each session. This is secure enough and can’t be reverse engineered. When client communicate with server, only session id is transmitted, between them. When client request for data, ASP.NET looks on to session ID and retrieves corresponding data. This is done in following steps,

* Client hits web site and some information is stored in session.
* Server creates a unique session ID for that clients and stored in Session State Provider .
* Again client request For some information with that unique session ID from Server.
* Server,looks on Session Providers, and retrieve the serialized data from state server and type cast the object.

Posted in 1. Session Part1, ASPNET, StateManagement | Leave a Comment »