refresh

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

refresh

Post by magicrobotmonkey »

How do I get rid of this:
"The page cannot be refreshed without resending the information. Click Retry to send the information again, or click Cancel to return to the page that you were trying to view."
if someone hits back or refresh. I notice it doesn't happen here. I use sessions and don't pass anything in the URL.
Deemo
Forum Contributor
Posts: 418
Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC

Post by Deemo »

that happens with post variables. if you can, get rid of those, otherwise, im clueless
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

Hrmmm... ok I guess its unavoidable then. I guess there's no way to disable the back button, either, huh. I have my own navigation built in which works flawlessly, but I'm afraid users will use the browsers back rather than mine.

but wait - how does this site do it??
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

maybe have it open in a popup window that doent have the navaigation bar...thats what i would do
User avatar
Bill H
DevNet Resident
Posts: 1136
Joined: Sat Jun 01, 2002 10:16 am
Location: San Diego CA
Contact:

Post by Bill H »

Try this at the top of the page:

Code: Select all

<?php
session_cache_limiter("private,must-revalidate");
?>
Steveo31
Forum Contributor
Posts: 416
Joined: Sun Nov 23, 2003 9:05 pm
Location: San Jose CA

Post by Steveo31 »

Code: Select all

<?php
header("Cache-control:private");
?>
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

Ahhh sweet!
header("Cache-control:private");
works like a charm!
User avatar
EvilWalrus
Site Admin
Posts: 209
Joined: Thu Apr 18, 2002 3:21 pm
Location: Springmont, PA USA

Post by EvilWalrus »

magicrobotmonkey:

Greetings from Reading, PA (about an hour from you) :)
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

yea i used to go to wild wings at the airport there for ayce wings. and i hear my uncle has a house there. want to go to baltimore and see the redsox on sunday??
User avatar
EvilWalrus
Site Admin
Posts: 209
Joined: Thu Apr 18, 2002 3:21 pm
Location: Springmont, PA USA

Post by EvilWalrus »

WildWings has since gone under... Something about the dude that owned it taking a loan from a loanshark, and never paying it back... so, now it's a little dinky shop with no publicity.

Hopefully, sometime in the near future, i can move out of this state... i could never like in Hershey though.. the chocolate smell would give me migraines 24/7 ;)
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

well im actually in harrisburg - i just put hershey because im working at hershey med currently and thats where i spend most of the time on these forums. And don't worry, its only chocolate half the time - the other half its manure!
Post Reply