how to secure webpages when we click on back button on browser?
-
Hi, I have some webpages for a small project. I have login page also. after logout, when I click on Back button It takes me to previously visited page. but then it should ask to login... How can WE do to ask the credentials when we click BACK button, after logging out? thanks in advance... shah_tech
-
Hi, I have some webpages for a small project. I have login page also. after logout, when I click on Back button It takes me to previously visited page. but then it should ask to login... How can WE do to ask the credentials when we click BACK button, after logging out? thanks in advance... shah_tech
-
Hi, I have some webpages for a small project. I have login page also. after logout, when I click on Back button It takes me to previously visited page. but then it should ask to login... How can WE do to ask the credentials when we click BACK button, after logging out? thanks in advance... shah_tech
if you use the session,after check logout,you should remove the session,and you should check the session in the loginpage.
my english is very bad!
-
Maybe you can redirect them to the login page after loggin out. if they push the back button now they wil be redirected again to the login :)
Stef
-
Hi, I have some webpages for a small project. I have login page also. after logout, when I click on Back button It takes me to previously visited page. but then it should ask to login... How can WE do to ask the credentials when we click BACK button, after logging out? thanks in advance... shah_tech
How are you maintaining the state of user in your application ?
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
if you use the session,after check logout,you should remove the session,and you should check the session in the loginpage.
my english is very bad!
-
How are you maintaining the state of user in your application ?
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
You need to check the user id and password every time in each page from session if the session is empty or wrong user id and password you should able to redirect user to login page . When you click sign out remove the data from the session . But i don't think this is solution for your query as it is happenening because of Cache. Wait need to find different way
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
You need to check the user id and password every time in each page from session if the session is empty or wrong user id and password you should able to redirect user to login page . When you click sign out remove the data from the session . But i don't think this is solution for your query as it is happenening because of Cache. Wait need to find different way
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
ya..that's the client matter...look thru this discussion http://forums.asp.net/thread/1674644.aspx[^] << >>
-
thanks suyuan, i'm using Sessions in my application. for logout, i'm using Hyperlink ( navigateUrl as Login.aspx. then where can i remove the session? I checked as removing session in page_load of Login.aspx, but it's not working.
to shah_tech: you can use a page(loginout.aspx) for clear session,after,let the page redirect to the login.aspx loginout.aspx'code like this: private void Page_Load(Object sender,EventArgs e) { if(!Page.IsPostBack) { Session.Clear(); Response.Write(""); } } I hope this can help you!:^)
my english is very bad!
-
Hi, I have some webpages for a small project. I have login page also. after logout, when I click on Back button It takes me to previously visited page. but then it should ask to login... How can WE do to ask the credentials when we click BACK button, after logging out? thanks in advance... shah_tech
Request.UrlReferrer.AbsoluteUri the above will give the URL of the page from which u r redirected to the current page. Compare this url with the login page url for eg: in the page load event if(Request.UrlReferrer.AbsoluteUri!="http://localhost/Login.aspx") { Response.Redirect("Login.aspx"); }
-
Hi, I have some webpages for a small project. I have login page also. after logout, when I click on Back button It takes me to previously visited page. but then it should ask to login... How can WE do to ask the credentials when we click BACK button, after logging out? thanks in advance... shah_tech
Hi, Try this code inside your pageload Response.Buffer = True Response.ExpiresAbsolute = DateTime.Now.AddDays(-1D) Response.Expires = -1500 Response.CacheControl = "no-cache"
Sherin Iranimose