Page 1 of 1
how to block page refresing
Posted: Thu Jan 22, 2009 10:54 am
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
Re: how to block page refresing
Posted: Thu Jan 22, 2009 11:15 am
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.
Re: how to block page refresing
Posted: Thu Jan 22, 2009 1:54 pm
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.