hi developers
my name is sajjad i have little problem in asp.net i have made two pages one is login and other is welcome page a user enters name and password in login page after checking valid user it open welcome page and after signout jumps to login page again nw problem is that when i hit sign out button it comes on sign in page to get username and pass again but without doing it if i am pressing back button on the top of the browser it displays welcome page with same user which last entered. how can i stop this plz help me out????
saj_amo
0
Junior Poster in Training
Recommended Answers
Jump to Posthi sajjad,
Here you need to use session concept. When ever a newuser is logged into the site from the login page ->it will automatically sets a session to that user (if the user is valid) then it will redirected to welcomepage. During the signout u need to kill that …
Jump to PostHi SAJ,
IN ur code please use the following javascript in source code of the loginpage.<script> function backButtonOverride() { // Work around a Safari bug // that sometimes produces a blank page setTimeout("backButtonOverrideBody()", 1); } function backButtonOverrideBody() { // Works if we backed up to get …
Jump to Posthi i tried by using above code with an example its working fine forme...
Jump to Posthi try to place the above code in welcome page and logoutpage once
All 13 Replies
kameswari
2
Junior Poster in Training
saj_amo
0
Junior Poster in Training
kameswari
2
Junior Poster in Training
saj_amo
0
Junior Poster in Training
kameswari
2
Junior Poster in Training
kameswari
2
Junior Poster in Training
kameswari
2
Junior Poster in Training
saj_amo
0
Junior Poster in Training
sanotsami1
0
Newbie Poster
saj_amo
0
Junior Poster in Training
sanotsami1
0
Newbie Poster
saj_amo
0
Junior Poster in Training
kameswari
2
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.