Zubrag.com
June 18, 2018, 02:48:34 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Password protect Script - Pages still accessible once logged out  (Read 6076 times)
mudge
Newbie
*
Posts: 1


« on: March 10, 2011, 07:29:19 AM »

This script seems to work fine on a MAC and on Firefix etc on a PC EXEPT for ie7/8:

Once the user has logged out they are sill able to manually enter the url of the pages that require a login and access the contents of those pages.

The Script only kicks in fully when the page is refreshed. I'll explain more.

I have created a small dummy site with the following pages:

Index
Page1
Page2

Once the user has logged out (by clicking the logout button i created), they can still acess the contents of a page by entering the url of it (i.e - http://www.domainname.co.uk/page2.php etc...)

This is only occuring in Internet Explorer, if the user clicks a link on that page (rather than entering it manually) the script is fine, or if the user refreshed the page the login script appears.

Anyone know why this is happening (page caching?) and is there any way around it?

Any help would be appreciated...obviously.

regards.




Logged
Paul
Newbie
*
Posts: 5


WWW
« Reply #1 on: April 21, 2011, 04:55:57 PM »

Sounds like your page is being cached by the browser.

You could try adding the following to your page header (right underneath the page title will do):

Code:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

It might work... it might not  Cool
Logged

[
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC