Log Out
-
I'm designing a web page where i've taken a Log Out button on Information Page if the user click on this button the user is redirected to the Home Page and it's working as i want to. But there is a problem, i can again be appeared in the page(Information Page) through the Back button given above i do not know that's bar name........ Please Suggest Some way(s)
-
I'm designing a web page where i've taken a Log Out button on Information Page if the user click on this button the user is redirected to the Home Page and it's working as i want to. But there is a problem, i can again be appeared in the page(Information Page) through the Back button given above i do not know that's bar name........ Please Suggest Some way(s)
.NET- India wrote:
given above i do not know that's bar name
The Browser Toolbar. You can not avoid back buttons. You can work around it by having a history.forward() snippet and page cache expiries.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
.NET- India wrote:
given above i do not know that's bar name
The Browser Toolbar. You can not avoid back buttons. You can work around it by having a history.forward() snippet and page cache expiries.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
I'm designing a web page where i've taken a Log Out button on Information Page if the user click on this button the user is redirected to the Home Page and it's working as i want to. But there is a problem, i can again be appeared in the page(Information Page) through the Back button given above i do not know that's bar name........ Please Suggest Some way(s)
Hi buddy, You can use sessions, cookies or application to handle that problem. Google on it ;) Regards, Tagore
modified on Monday, March 3, 2008 8:28 AM
-
Hi buddy, You can use sessions, cookies or application to handle that problem. Google on it ;) Regards, Tagore
modified on Monday, March 3, 2008 8:28 AM
I'm using Session to logout Session["UserName"] = null; Response.Redirect("../Admin/HomePage.aspx"); and in Page Load i check whether or not Session["UserName"] is empty it is then redirect to home page otherwise the user to visit the information.......... But still it's not working in best of it's way...........
-
I'm using Session to logout Session["UserName"] = null; Response.Redirect("../Admin/HomePage.aspx"); and in Page Load i check whether or not Session["UserName"] is empty it is then redirect to home page otherwise the user to visit the information.......... But still it's not working in best of it's way...........
the browser back button will take you back to the page you were just on without going back to the server and re-loading the page, therefore the onload will not run again until the page is refreshed. The only way i can think is to somehow delete the cache or apply some sort of method to run when the browser back button runs
-
the browser back button will take you back to the page you were just on without going back to the server and re-loading the page, therefore the onload will not run again until the page is refreshed. The only way i can think is to somehow delete the cache or apply some sort of method to run when the browser back button runs
check this article out: http://www.codeproject.com/KB/aspnet/NoCaching.aspx
-
.NET- India wrote:
given above i do not know that's bar name
The Browser Toolbar. You can not avoid back buttons. You can work around it by having a history.forward() snippet and page cache expiries.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis LevinsonI've set the page no-cache on page load and it's working fine in Internet Explorer but not running fine in mozilla as i've described below please have a bit of your precious time.... 1.) I've a folder named Admin in this folder i've around ten web forms which can only be accessed by the administrator the first web form(after the successful login id and password) there are some more links on this web form e.g Top(one of the link) as i click on this Top link another web form opens and now if i click on the Log Out button then it opens the first web form Top if i use Back Button plz suggest what should i do...... 2.) I have a link for Change Password if the admin wants to change his/her password he/she can do this link show a Div on the form once the admin change his password and then click on the LogOut button and then use the back button then it show the Div again but it must not show it because the page is not being cached This is my code to no-cache Response.Buffer = true; Response.ExpiresAbsolute=DateTime.Now.AddDays(-1d); Response.Expires =-1500; Response.CacheControl = "no-cache"; Please have a bit of your precious time ...........
-
I'm using Session to logout Session["UserName"] = null; Response.Redirect("../Admin/HomePage.aspx"); and in Page Load i check whether or not Session["UserName"] is empty it is then redirect to home page otherwise the user to visit the information.......... But still it's not working in best of it's way...........
try this in Page Load if(Session["UserName"] == null && Page.IsPostBack) Response.Redirect("../Admin/HomePage.aspx");