Browser back button............

  • Thread starter Thread starter Ram
  • Start date Start date
R

Ram

I have Login.aspx page where user identity will be verified and taken to the
next page. I am using Reponse.Redirect("home.aspx") to take them next page.
In home.aspx user still click on browser back button and can navigate to
Login.aspx page. How to avoid the user going back to the login page after
his successfull login. Thanks for your advice.
Ram
 
I don't think you can really prevent the user of pressing the back button
and go to the Login.aspx page
But you can add code in that page that redirects the user immediately when
the user is already authenticated.

Regards,

--

Nico Debeuckelaere

ND-Sign BVBA (Microsoft Certified Partner since 2004)
Pierstraat 135
B-2840 Rumst
URL: http://www.nd-sign.com
== ND-Sign, Designed for you ==
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
You can set a user flag
for example:
when flag=0 record user flag is log off
when flag=1 record user flag is log on

check the flag's value when user click on browser back button
if flag==1 then the user is log on
execute Reponse.Redirect("home.aspx") to take them next page again.
 
Back
Top