Re: Distinguishing between a mouse click and a refresh?

From: Date: Tue, 05 Dec 2006 19:49:14 +0000
Subject: Re: Distinguishing between a mouse click and a refresh?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-245540@lists.php.net to get a copy of this message
Hi - Thanks! This is the solution I actually realized myself last night, after many hours of looking at the other solutions and finding problems with them. Thanks to everyone who responded! - Mark Richard Lynch wrote:
On Mon, December 4, 2006 3:03 pm, Mark London wrote:
Is there any way for PHP to know whether it is being called due to a browser refresh versus a mouse click? I think the answer is no but I just want to be sure. Thanks.
    
You could embed a random token in all your links and input forms, and if they re-use a token, then you know they are re-loading something they have seen at some time in the past.


« previous php.general (#245540) next »