c# - Single page website with login control -


i have single page website (asp.net using c#) displays grid data when no user logged in. when user presses login popup control opens , can login. when logged in functionality available on page. after period of inactivity (i.e no postback) want functionality disabled automatically on page , message stating have been logged off.

typical pages use separate login page that's not want. above possible , how?

your "easiest" route put meta refresh in page, redirects logout page, redirects back.

add following head of page:

<meta http-equiv="refresh" content="60; url=yourlogoutpage.aspx"> 

after 60 seconds, automatically go yourlogoutpage.aspx, kill session, , redirect them page.


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -