Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0
hello frndz!!!! we are creating a shopping website project(like flipcart), we are facing a problem that after user has logout if he clicks on the back button it is again showing the home page...plz suggest some solution
Posted 2-Jan-13 2:09am
Comments
Sergey Alexandrovich Kryukov at 2-Jan-13 17:46pm
   
Solution for what?! There are too many ways to screw up things... You just did not design things properly.
—SA

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Fix your code. Make it not cache. I think you'll find that if they tried to do something on the page, it would not work. If it does still work, then your code is completely messed up.
  Permalink  
Comments
krishnaMohanGiduturi at 2-Jan-13 22:22pm
   
Hi christian my page layout as follows LOGIN PAGE-->PRODUCTS PAGE-->ADD TO CART-->LOGOUT PAGE now my problem is after user logout i dont want to goto backpage again it has to be redirected to login page.....give me example for these
Christian Graus at 2-Jan-13 22:24pm
   
You need to write pages that do not cache, with a NOCACHE directive, for example. This is easy to google. You need to clear your session and all your pages need to check the session for a logged in user before rendering.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web01 | 2.8.140926.1 | Last Updated 2 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100