page refresh problem while using sessions

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
bugthefixer
Forum Contributor
Posts: 118
Joined: Mon Mar 22, 2004 2:35 am

page refresh problem while using sessions

Post by bugthefixer »

I have used sessions in my site...but while using sessions whenever user clicks on back button of browser..it doesnt display the page rather asks to refresh it..wat could be the possible solution to this so that user dont need to refresh the page..it should not prompt to refresh the page.
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

It will only do this if on the page their going back to is sending data to the site and theres no way you can stop it i dont think, just forward the user away from the page where the data was sent to.
bugthefixer
Forum Contributor
Posts: 118
Joined: Mon Mar 22, 2004 2:35 am

Post by bugthefixer »

but there might be some solution to this..I have created a login page and i have used session for that user and if user clicks bak button then session is expired and on refreshing it doesnt recognise the user.
grudz
Forum Commoner
Posts: 68
Joined: Thu Dec 04, 2003 12:52 pm

Post by grudz »

put this in your header....i saw it somewhere....

Code: Select all

header("Cache-control: private"); // IE 6 Fix.
Post Reply