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
how to block page refresing
Moderator: General Moderators
-
kushaljutta
- Forum Commoner
- Posts: 50
- Joined: Fri Dec 26, 2008 11:05 am
Re: how to block page refresing
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
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.
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.