Click here to Skip to main content
13,042,421 members (121,756 online)
Rate this:
Please Sign up or sign in to vote.
See more:
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
Solution for what?! There are too many ways to screw up things... You just did not design things properly.

1 solution

Rate this: bad
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.
krishnaMohanGiduturi 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 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 2 Jan 2013
Copyright © CodeProject, 1999-2017
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