A1VBCode Forums

How to stop anyone to open a login page url in other browser in asp.net?


http://www.a1vbcode.com/vbforums/Topic26756.aspx

By johndevid0987 - 1/17/2009

i have created a login page in asp.net using c# and when i open that page after validation then the url address is opened in a new browser even after i close that window by clicking sign out button. that page can be opened by just copying that url address even after i sign out.



how to stop it? serious answer please.
By sprite44 - 4/12/2010

I was having the same problem, but I just put in the code that TallOne suggested and it works great. It is simply a matter of having the page redirected to the login page. The sign out button will work just fine when using the redirect. However, I am having another problem, when I sign out and click the back button, it brings everything back up. I found a code that works great on IE8, but doesnt work on Mozilla. Does anyone have a code to prevent browser back button click after sign out? for Mozilla that is? Appreciate the help in advance, thanks.