Tuesday, July 6, 2010

State Management in asp.net

1)      Client Side

a.       Viewstate

b.      Cookies

c.       Hidden Fields

d.      Querystrings

e.      Control State

2)      Server Side

a.       Application state

b.      Session State

1 comment:

  1. Sessions
    ========

    - Disadvantages

    1) Session data stored in server memory - performace overhead
    2) overhead involved in serializing and de-serializing the session data incase of stateserver and sqlserver modes.

    - Session object is in System.Web.SessionState.HttpSessionState class.

    - Session State modes are

    off
    InProc(In-Memory Object) - stores data in current application domain
    StateServer(Aspnet_state.exe) - stores data in seperate windows service independendent of IIS
    SQLServer(DataBase) - stores data in sqlserver database tables
    Custom(Custom Provider)

    - Session events in global.asax
    session_Start
    Session_End

    ReplyDelete