i've a problem here where when i logout i still can click back..can anyone solve my problem?
kayfar 0 Junior Poster in Training
Recommended Answers
Jump to Postyou can solve this problem using state managment or database.
When you login store your username in cokkies and when you logout that time cler your cokkies. and on page postback check whether the Cokkies have username. If cookies dose not have any username then redirect User to login page …
Jump to PostBest way to do it Store user details in session when login and with logout clear session data, On every page load event check user credential then only proceed else redirect it to login page.....:icon_idea:
Jump to PostThis will work.... whether its cached or not.....clearing cache is not a good idea for me as it could lead to client dissatisfaction.
Jump to Posti've a problem here where when i logout i still can click back..can anyone solve my problem?
hi there
You can use this logic in master page page_Load event
Private Sub IsUserAuthenticated() If Me.Context.User.Identity.IsAuthenticated = False Then Response.Redirect("~/Login.aspx") End If End Sub
When the user press …
All 27 Replies
hirenpatel53 -1 Posting Whiz in Training
kayfar 0 Junior Poster in Training
pritesh2010 30 Posting Whiz in Training
Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster
hirenpatel53 -1 Posting Whiz in Training
mono_jit23 1 Junior Poster in Training
hirenpatel53 -1 Posting Whiz in Training
Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster
mono_jit23 1 Junior Poster in Training
mono_jit23 1 Junior Poster in Training
hirenpatel53 -1 Posting Whiz in Training
mono_jit23 1 Junior Poster in Training
hirenpatel53 -1 Posting Whiz in Training
kayfar 0 Junior Poster in Training
hirenpatel53 -1 Posting Whiz in Training
hirenpatel53 -1 Posting Whiz in Training
kayfar 0 Junior Poster in Training
hirenpatel53 -1 Posting Whiz in Training
kayfar 0 Junior Poster in Training
hirenpatel53 -1 Posting Whiz in Training
kayfar 0 Junior Poster in Training
hirenpatel53 -1 Posting Whiz in Training
reach_yousuf 2 Junior Poster
kayfar 0 Junior Poster in Training
Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster
dnanetwork 18 Practically a Master Poster Banned
kayfar 0 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.