Hit Back In The Browser?
Jan 8, 2010When i hit back in the browser the user is still logged in.
View 2 RepliesWhen i hit back in the browser the user is still logged in.
View 2 RepliesI've created a Sign Out link on my page, just like the one you see on the top right hand corner of this forum.
This is the code i use :
<asp:HyperLink NavigateUrl="~/Login.aspx" ID="hypSignOut" runat="server" Text="Sign Out"></asp:HyperLink>
However, after signing out, I click the back button on my browser, I can still go back into the site. How do I prevent this?
When I click Logout page redirect to Login page but when click to browser arrow back then it will goes back, I want to after Logout cannot going to back page...
View 1 RepliesHow is it possible to programatically Browse back one step, instead of doing that with the browse back/forward buttons in the browser ?
View 4 Repliesi want to clear history of user page after they sign out from their page manipulations.I googled it and found some ways with cacheability,but it doesnt work fine.
View 3 RepliesPossible Duplicate: Disabling Back button on the browser i want to disable browser back button without using javascript function forward().because it remain on this page.
I want to totally disable browser back button like banking sites
send me code for that i need it
I have an image that has an on-click function. That on-click function calls an action method in a controller passing some values from the page, using window.location.replace.
[Code]....
The controller then gets data from the repository and displays a "printer friendly html" page:
[Code]...
When i Clicked a logout button the page will be close but the browser back button go to previous page how to solve this....
View 1 RepliesIm using ASP.NET 2.0,C# for my web application development. I am having a login page and new user registration page. how to redirect to login page once user finishes his registration and clicks back button of browser. Registration page is container page using some master page..
View 7 RepliesIn my app, there is a grid that you can drill down. You can go back to prev view via some links but the back bowser button is not integrated to that, so that if you do hit the back browser button, it logs out of the app which I don't want. I would be happy if it would redirect to the first page. I think this part is what we need. [URL] this is the startpage.xaml, at the end there is the hyperlink - so maybe here I can see if the back browser is pressed ( there is no other place in the codes that would navigate out), and if this is pressed I can redirect to a different spot? Is this a sound idea and how do I check if this back browser has been pressed?
<HyperlinkButton Content="Logout"
I'm using 2 masterpages in my project.One master page is for login page and another one for the HomePage where user will go thro the options to reach other pages from home page..The thing is,i have "Logout" button in my home page.When i click on the logout button,the page will be redirected to "LoginPage.aspx". After redirecting to login page,when i click on browser back button,the previous page is displaying but it should not display to user since i'm doing sensitive transactions in all pages...
I tried using following code
Code:
Response.Expires = 0;
Response.Cache.SetNoStore();
Response.AppendHeader("Pragma", "no-cache");
Page.Response.Cache.SetCacheability(HttpCacheability.NoCache);
but it's not working...
From pageA, clicking a button to open pageB which display a crystal report. User can only use browser back button. How to open pageC from pageB? Can I add code in pageB close (if there is a page close event) or make back button in browser to open pageC instead of pageA?
View 2 Repliesi just like to ask if you have any idea of preventing the Back button of the browser to navigate back to the previous page after a user log in.Ex:After a user successfully logged in to my website and he/she hit the Back button of the browser.I want this to not redirected to the previous page instead redirected to the same page which is my Main page.Also after a user logged out to my website and again he/she hit the Back button of the browser.I also want this to not redirected to the previous page instead redirected to my login page.
View 10 RepliesHow to recognize if user has come through browser back button in asp. net site
AS well how to identify if they have opened new tab in the same browser.
Not sure if i'm posting in the right forum, if not, please move it...i have the following issue... I want to "disable" browser's back button. Seems it's not possible, but using cache.setcacheability and timing it, kinda disables the option of navigating back. I need this because in some pages of my webpage, i keep values in a Session variable so when a page loads, i need to check that variable, and, if navigating back, cant do that. I also "set cache to false" because if someone closes session, and i allow cache, someone else could handtype a url in that same pc and see the page without login (though if he/she tries to navigate through it will be kicked out because when loading a new page, i'll know that he/she is not logged) but i dont want to allow even that,
that's why cache is disabled. The problem is that loading over and over again my masterpage (header, footer, menu and stuff) is going to slow down the webpage, because every time there's a request, the page has to be sent again completely. So, is there something like a "mix" mode where i can allow cache just for a few things? If not, what's the best practice to achieve both things i'm trying: speed and security?
i want to know how can i restrict any user to access any webpage after logging out
After user has logged out i am redirecting user to home.aspx and from here i do not want user to be able to go back using browser back button.. How can i do it? I used this code in javascript :
<script type="text/javascript"> javascript:window.history.forward(1);</script>
This does not work for me. In all pages i am using Master Pages..
I use following code to disable browser back button but it not work
<script type = "text/javascript" >
function preventBack(){window.history.forward();}
setTimeout("preventBack()", 0);
window.onunload=function(){null};
</script>
How can i disable it.
My problem is when I logout from my website, the logout button redirects to login page , and then if I click BACK button in browser, I can go back to my website. I do not want that.
What I am actually trying to make is like at mail.yahoo.com or at mail.google.com after sucessful logout user cannot view the account.
I would like to make the same functionality for my application.
When i use back button on browser, then I did not get session value.
How to store session on browser back button.
I have two application one is my mail application and from that mail on click on some link users goes to web browser. now i have added "Go back to your mail" link over there.and i have treid with Javafunction and window.open to switch the window to mail application. but it is not wroking with Tab brwoser.Now i want a function/code which perform like Alt+Tab to swtich to back on mail applicaiton from that browser - on click event. is there any way to do it in Asp.net.
View 2 RepliesIn web application i.e .aspx page once user clicks on logout it redirects to login page by clearing all the sessions. Now when user clicks on back button in the browser it redirects to last view page. Since user logged out from the application how can we show the last viewd page? when user clicks on the page it checks hte session exsits or not then redirects to login page..
But i dont wna t the user to lick on the back button.. i want to siable the back option int browser .. I have achived this by
using.
<script>
window.history.forward(1);
</script>
This solution works in all the browser but Not In Google Crome..
Can someone give me a basic run down of how the steps go from clicking a button on a web page to it getting returned to your browser.
does all code come back as HTML to your browser even if its codded in the ASP.NET environment?
from PC ... to web server .. back to browser?
From pageA, clicking a button to open pageB which display a crystal report. User can only use browser back button. How to open pageC from pageB? Can I add code in pageB close (if there is a page close event) or make back button in browser to open pageC instead of pageA?
View 1 Replieshow to avoid viewing the last page visited by the user after logging out.
View 2 Replies