Session Expire Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • giveDsolution
    New Member
    • May 2007
    • 107

    Session Expire Problem

    Is their any other way to verify the session expires rather than checking it in each page.

    For example.....if session expires in any page it will automatically redirect to Login page.
    As per my knowlegde something done in web.config file but i m not sure.
    Guys plz help me to find the solution.
  • madhu7sudan
    New Member
    • Jul 2007
    • 12

    #2
    hi

    if u r using formauthenticat ion this is the code in web.config

    <authenticati on mode="Forms">
    <forms name="appNameAu th" path="/" loginUrl="login .aspx" protection="All " timeout="30">

    </forms>
    </authentication>


    at path = set u r own path


    and also use this code


    <sessionState
    mode="InProc"
    stateConnection String="tcpip=1 23.0.2.1:42424"
    sqlConnectionSt ring="data source=122.0.4. 1;Trusted_Conne ction=yes"
    cookieless="tru e"
    timeout="20"
    />

    based on ur requirement change the mode= stateserver or InProc

    and also change that ip address as per u r system etc

    Comment

    Working...