how to define session tiomeout in asp.net

Posted by Shanky11 under ASP.NET on 12/12/2012 | Points: 10 | Views : 742 | Status : [Member] | Replies : 2
i want to that if a user not interacts with a page for a minutes it automatically signout.if we r signed in




Responses

Posted by: Saratvaddilli on: 12/12/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
we can achieve that in three ways
1) Web.config
<system.web>

<sessionState mode="InProc" cookieless="false" timeout="15">
</sessionState>
</system.web>

2)Global.Asax
void Session_Start(object sender, EventArgs e)

{
Session.Timeout = 15;
}

3)We can set in IIS also
select the properties of the website > Edit Configuration >State Management > Set session timeout value


Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Saratvaddilli on: 12/13/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi Shanky11 Please mark as answer if this helps you..

Thanks and Regards
V.SaratChand
Show difficulties that how difficult you are

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response