Groups | Blog | Home
all groups > asp.net > march 2004 >

asp.net : Browser back button............


Ram
3/10/2004 10:54:57 PM
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

Nico Debeuckelaere
3/11/2004 8:32:24 AM
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.)


[quoted text, click to view]

Winter.King
3/11/2004 3:40:26 PM
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.

"Ram" <RamKulkari@hotmail.com> дÈëÏûÏ¢ÐÂÎÅ
:e6xLFXzBEHA.3064@tk2msftngp13.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button