Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

ASP.net Session expiring before Authentication

Options
  • 30-04-2010 12:18pm
    #1
    Registered Users Posts: 2,791 ✭✭✭


    Hi,

    I'm working on an MVC 2 application which stores a few objects in Session when the user logs in.

    My problem is that even though I've set the session to expire at the same time as the forms authentication session, the session is expiring before that. So the result is that the session is null when it shouldn't be.

    Here's two of the relevant settings from my web.config:
    <authentication mode="Forms">
    			<forms loginUrl="~/Account/LogOn" timeout="30"/>
    		</authentication>
        <sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="30"/>
    

    Anyone have any ideas how to get these to expire at the same time?

    Thanks


Comments

Advertisement