Hosting solutions at your service Datafordummies Home About Datafordummies Contact Us Frequently asked questions News Site Map
Hosting Plans starting at 4.95 Domain Registration Web Site Design Web Site Promotion Support Center
FAQSearchMembersGroupsProfilePMsRegisterLoginLogout
Web page expired fix.

 
Post new topic   Reply to topic    Resources Home -> Tips and tricks
View previous topic :: View next topic  
Author Message
Datafordummies
Site Admin
Posts: 18
Joined: 10 Mar 2005
PostPosted: Wed Jul 02, 2008 9:08 pm    Post subject: Web page expired fix. Reply with quote

I have come up with a nice fix to a common problem.

problem: You have a form that is using post method and you can click the browser back button without getting a Web page expired message.

Fix: add this snippet to the top most part of your php page.]
<?
session_start();
ini_set('session.cache_limiter', 'private');
header('Cache-Control: private');
?>
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Resources Home -> Tips and tricks All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this resource
You can reply to topics in this resource
You cannot edit your posts in this resource
You cannot delete your posts in this resource
You cannot vote in polls in this resource



Powered by phpBB © 2001, 2002 phpBB Group

Policies | Disclaimer
Copyright ©1998-2006 Hostcrew.com