how to block page refresing

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
kushaljutta
Forum Commoner
Posts: 50
Joined: Fri Dec 26, 2008 11:05 am

how to block page refresing

Post by kushaljutta »

i want to block page refreshing
i mean if i press F5 the session is going to expire...

i want that code..

see that opereation in http://www.irctc.co.in
tanmay
Forum Newbie
Posts: 12
Joined: Mon Jan 19, 2009 9:51 am

Re: how to block page refresing

Post by tanmay »

hi kushal we dnt have any method that we can use to block refreshing. for that i think you have to use some framework with php.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: how to block page refresing

Post by pickle »

I can reload that page just fine. There is no way, server side or client side, to guarantee the user cannot refresh the page.

If you reload the page, neither $_COOKIES nor $_SESSION should expire. If that's happening, you've got a problem somewhere else.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply