Go Back   Dynamic Drive Forums > General Coding > Other
Search Dynamic Drive Forums:

Reply
 
Thread Tools Search this Thread
  #1  
Old 03-02-2008, 02:24 AM
Benedizione Benedizione is offline
Junior Coders
 
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
Reply With Quote
  #2  
Old 03-02-2008, 02:25 AM
Nile's Avatar
Nile Nile is offline
Elite Coders
 
Join Date: Jan 2008
Posts: 3,007
Thanks: 10
Thanked 442 Times in 438 Posts
Blog Entries: 5
Default

Use cookies... are you using js or php?
__________________
Coding is just another puzzle. And it's okay to have help putting together some peices.
Please don't be afraid to ask.
I try to highlight my code with correct syntax highlighting. Unless the its too long. Or I'm to busy.
Reply With Quote
  #3  
Old 03-02-2008, 02:27 AM
Benedizione Benedizione is offline
Junior Coders
 
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
Reply With Quote
  #4  
Old 03-02-2008, 02:29 AM
Nile's Avatar
Nile Nile is offline
Elite Coders
 
Join Date: Jan 2008
Posts: 3,007
Thanks: 10
Thanked 442 Times in 438 Posts
Blog Entries: 5
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?
__________________
Coding is just another puzzle. And it's okay to have help putting together some peices.
Please don't be afraid to ask.
I try to highlight my code with correct syntax highlighting. Unless the its too long. Or I'm to busy.
Reply With Quote
  #5  
Old 03-02-2008, 02:36 AM
Benedizione Benedizione is offline
Junior Coders
 
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>
Reply With Quote
  #6  
Old 03-02-2008, 02:37 AM
Nile's Avatar
Nile Nile is offline
Elite Coders
 
Join Date: Jan 2008
Posts: 3,007
Thanks: 10
Thanked 442 Times in 438 Posts
Blog Entries: 5
Default

No, the login script! lol!
__________________
Coding is just another puzzle. And it's okay to have help putting together some peices.
Please don't be afraid to ask.
I try to highlight my code with correct syntax highlighting. Unless the its too long. Or I'm to busy.
Reply With Quote
  #7  
Old 03-02-2008, 02:39 AM
Benedizione Benedizione is offline
Junior Coders
 
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"); ?>
Reply With Quote
  #8  
Old 03-02-2008, 02:44 AM
Nile's Avatar
Nile Nile is offline
Elite Coders
 
Join Date: Jan 2008
Posts: 3,007
Thanks: 10
Thanked 442 Times in 438 Posts
Blog Entries: 5
Default

Yea, I want the script that lets you login!
__________________
Coding is just another puzzle. And it's okay to have help putting together some peices.
Please don't be afraid to ask.
I try to highlight my code with correct syntax highlighting. Unless the its too long. Or I'm to busy.
Reply With Quote
  #9  
Old 03-02-2008, 02:51 AM
Benedizione Benedizione is offline
Junior Coders
 
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.
Reply With Quote
  #10  
Old 03-02-2008, 03:01 AM
Nile's Avatar
Nile Nile is offline
Elite Coders
 
Join Date: Jan 2008
Posts: 3,007
Thanks: 10
Thanked 442 Times in 438 Posts
Blog Entries: 5
Default

You can replace the password with ***** just show mw the code please..
__________________
Coding is just another puzzle. And it's okay to have help putting together some peices.
Please don't be afraid to ask.
I try to highlight my code with correct syntax highlighting. Unless the its too long. Or I'm to busy.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:30 AM.

Home - Contact Us - Archives - Link to DD - Top 

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.