SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Nov 2002
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ”Back”- How could I eliminate ?

    I try to do for a little association the WEB-sites, where only the members can log in. The login site generates a cod to Myqsl table and saves it in a cookie which follows from page to page. When the user logs out the cookie becomes value ” ”. Sites function quite well and after loging out you have to log in to the sites again. But there is just one problem ( I know ). With the browsers own ”Back” you can enter the sites backwards, which is not the purpose, even if the user is known. How can I eliminate this? Remember...

    I am in the beginning of my PHP-programming and do not know all the possibilities.

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,806
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    after the user logs out, use a header redirection from the logged out page to a logged confirmation page. That way if they go back, they will be going to the logged out page and not the restricted ones.
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    SitePoint Member
    Join Date
    Nov 2002
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks...
    I have this cod on my login/logout page, from every page i have form name=”logout”

    if($_POST['logout']){
    setcookie("session","");
    header("Location:indexout.php");

    }
    What should I have on the ”indexout”-page to prevent the user to get the previous page ( where he submit the logout form ) ?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •