Need solution for using session?
i m developing log in page,here i m using session...after logout,page will redirect to log in page..this is not a problem..my need is,when i clicking next & previous button in browser window the page should not be displayed..can any one tell the solution..
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Iftikar HussainRank #423 · 5.9K reputationPosted Sep 20, 2013, 12:28 AM EDT
Please refer the below link
http://www.mindfiresolutions.com/How-to-Prevent-visiting-pages-from-History-after-Logout-118.php
Regards,
Iftikar
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Sep 20, 2013, 12:35 AM EDT
disable the browser back button after logout
http://www.aspsnippets.com/Articles/Disable-Browser-Back-Button-after-LogOut-in-ASPNet-using-JavaScript.aspx
or
set a session variable at login page then check the login session every page on pageload and prevent caching
Response.Cache.SetCacheability(HttpCacheability.NoCache);
if(Session["mysession"] != null)
{
response.redirect("login.aspx")
}
else {....}
selva kumarRank #2,987 · 483 reputationPosted Sep 20, 2013, 1:35 AM EDT
hussian...
selva kumarRank #2,987 · 483 reputationPosted Sep 20, 2013, 1:36 AM EDT