asp.net - session/forms authentication timeout -
i'm trying site go login page after amount of time if there no activity user.
in web.config far i've tried:
<system.web> <authentication mode="forms"> <forms defaulturl="~/notifications.aspx" loginurl="~/index.aspx" timeout="1" slidingexpiration="true"> </forms> </authentication> <sessionstate mode="inproc" cookieless="false" timeout="2"/> </system.web>
but when try load page after few minutes, i'm getting error due session variable not being present -
shouldn't go login page if try anything?
any deas?
thanks,
Comments
Post a Comment