in my mvc application i have used a session variable at login. i need to use it in the _layout.aspx.
this is my web configuration
<system.web>
<sessionState mode="InProc" timeout="500000">
</sessionState>
</system.web>
but after few minutes page says session variable is not set to an instant of an object
can anybody tell me the reason for that?