Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: How to protect a page from being viewed by the browser "back" button

  1. #1
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default How to protect a page from being viewed by the browser "back" button

    I have a page that after logging out and then clicking on the "back" button on the browser will take you back into the page that I do not want to be accessible. What can I do to make that page impossible to view after logging out?

    Dre

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Use cookies... are you using js or php?
    Jeremy | jfein.net

  3. #3
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Nile View Post
    Use cookies... are you using js or php?
    php

    Do you mean that the person accessing the page whether from my computer or whatever computer being used to access the page would have to use "cookies"?

    I thought that "cookies" left on the computer gave other users of that computer access to those pages?

    Dre

  4. #4
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Cookies set an option to your browser, so you could make a cookie called 'cookie' and with 'cookie', has the value of 'hihihihi', then you could make your page echo :hihihihi
    So cookies store data kinda.
    Also can I see your code?
    Jeremy | jfein.net

  5. #5
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

    <!--
    ** DESIGN and COPYRIGHT BY: Prophecies of Revelation (C) 2003
    ** URL: propheciesofrevelation.org
    ** AUTHOR:
    -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Prophecies of Revelation</title>
    <meta name="author" content="">
    <meta name="description" content="">
    <meta name="keywords" content="">
    <meta name="rating" content="General">
    <meta name="revisit-after" content="">
    <meta name="robots" content="">
    <meta name="distribution" content="">
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">

    </head>

    <BODY background="" bgcolor="#ffffff" text="#000000" link="#ffffff" vlink="#000099" alink="#999966" bgproperties="fixed">


    <STYLE TYPE="text/css">
    <!--

    a:link{color: #0000CC}

    a:link{font-size: 100%}
    a:link{font-family: palatino, times new roman, courier}
    a:link{font-weight: 700}


    a:hover{font-size: 120%}
    a:hover{color: #FF3333}
    a:hover{font-style: italic}
    a:hover{font-family: palatino, times new roman, courier}
    a:hover{font-weight: 700}

    a:visited{color: #888888}
    a:visited{font-size: 100%}
    a:visited{font-family: palatino, times new roman, courier}
    a:visited{font-weight: 700}


    A {text-decoration: none}

    -->
    </STYLE>


    <?php
    include('menu.txt');
    ?>


    <table border="0" align="left" width="1100">
    <tr><td><font face="palatino" size="3">




    <a href="form.php">Post a Comment</a> | <a href="http://www.propheciesofrevelation.org/?logout=1">Logout</a>


    <br><br>





    <p align="justified"><small><font color="#99CCFF">
    The King of Kings and Lord of Lords -- The Giver of the Holy Ghost in Acts -- The Word of God -- The Lamb of God -- The Devil's Defeater -- The Beginning and The End -- The Honey in the Rock -- The Staff of Life -- The Soon Coming King to Thessalonians -- The Redeemer From The Curse of the Law -- The Alpha and the Omega -- The Chief Cornerstone -- The Prince of Peace -- A Father to the Fatherless -- A Light For Those In Darkness -- Joshua's Captain of Salvation -- Elijah's Staff -- A Husband to the Widow -- Love in John -- Malachi's Son of Righteousness with Healing in His Wings
    </small></p></font>

    <!-- Site Meter -->
    <script type="text/javascript" src="http://s31.sitemeter.com/js/counter.js?site=s31revelation">
    </script>
    <noscript>
    <a href="http://s31.sitemeter.com/stats.asp?site=s31revelation" target="_top">
    <img src="http://s31.sitemeter.com/meter.asp?site=s31revelation" alt="Site Meter" border="0"/></a>
    </noscript>
    <!-- Copyright (c)2006 Site Meter -->

    </font></td></tr></table>


    </body>
    </html>

  6. #6
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    No, the login script! lol!
    Jeremy | jfein.net

  7. #7
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Nile View Post
    No, the login script! lol!
    You mean this:
    <?php include("/home/content/b/e/n/benedizione/html/password_protect.php"); ?>

  8. #8
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Yea, I want the script that lets you login!
    Jeremy | jfein.net

  9. #9
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default

    I cannot give you the password though. It's strictly confidential.

  10. #10
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    You can replace the password with ***** just show mw the code please..
    Jeremy | jfein.net

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
  •