how to automatically logout and enter value in database if a page is ideal

Posted by Shanky11 under ASP.NET on 9/5/2014 | Points: 10 | Views : 1600 | Status : [Member] | Replies : 4
i have created a web application in that i need to enter a value in table

when a user do not hit a page for 1-2 minute
how can i achieve this???




Responses

Posted by: Naveenhcl on: 9/8/2014 [Member] Starter | Points: 25

Up
0
Down
Hi,

If you want to logout the screen based on ideal time then you must and should go with sessions, set the session timeout as you want and save the login information in session once session timeout is expired then you can log out and redirect to login screen again.

EX:
if (Session["Login"] != null)
{
//do your stuff on here.
}
else
{
Session.Abandon();

Response.Redirect("ScorpCLMLogin.aspx");
}


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

Posted by: Shanky11 on: 9/8/2014 [Member] Starter | Points: 25

Up
0
Down
Actually i Tried this
but no response
actually i am using a 3rd party dll
int that session is starting
but how can i expire all session on page


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

Login to post response