FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » mouse movement detection?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: mouse movement detection? [message #173904 is a reply to message #173894] Thu, 12 May 2011 02:26 Go to previous messageGo to previous message
Jeff North is currently offline  Jeff North
Messages: 58
Registered: November 2010
Karma:
Member
On Wed, 11 May 2011 16:53:54 -0000, in comp.lang.php
jimp(at)specsol(dot)spam(dot)sux(dot)com
<2irq98-6k2(dot)ln1(at)mail(dot)specsol(dot)com> wrote:

> | Jeff North <jnorthau(at)yahoo(dot)com(dot)au> wrote:
> | > On Wed, 11 May 2011 04:00:09 -0000, in comp.lang.php
> | > jimp(at)specsol(dot)spam(dot)sux(dot)com
> | > <97ep98-c2m(dot)ln1(at)mail(dot)specsol(dot)com> wrote:
> | >
> | >>| Jeff North <jnorthau(at)yahoo(dot)com(dot)au> wrote:
> | >>| > On Tue, 10 May 2011 09:57:16 -0700, in comp.lang.php richard
> | >>| > <member(at)newsguy(dot)com>
> | >>| > <5jmrvpnl392w$(dot)dlg(at)evanplatt(dot)sux> wrote:
> | >>| >
> | >>| >>| Just curious to know if PHP, or other script language, has a method of
> | >>| >>| detecting mouse movement.
> | >>| >>| I had left a website page open all night and in the morning found I had
> | >>| >>| been transferred to another page that said my mouse had been idle for 10
> | >>| >>| minutes.
> | >>| >>| I have a hunch that it was probably due more to nothing happening on the
> | >>| >>| page for a couple of hours.
> | >>| >
> | >>| >
> | >>| > It could be javascript and timers or the page header has a refresh
> | >>| > setting <meta http-equiv="refresh" content="600">
> | >>|
> | >>| Can't be done with just an HTML refresh.
> | >
> | > True. You would need to define which page to direct to:
> | > <meta http-equiv="refresh" content="2;url=refresh1.htm">
> | >
> | > Works with FF4 (although FF complains), IE9, Opera, Safari.
> | >
> | > This is an old technique for page refreshes before the days of AJAX.
> |
> | I'm not sure what your point is.
> |
> | Of course you can make a page refresh itself with HTML.
> |
> | But what you can not do with HTML is tell if the mouse has moved or not.
> |
> | Only client side scripting can do that.

It is not whether the mouse has moved but whether or not the page has
been sitting idle for too long.
For example, you may have a form and a session cookie that times out
in 20 minutes. If you haven't successfully submitted the form within
the allotted time then the cookie expires and you will need to log in
again.

Re-reading the OP I think that the statement was a red-herring, maybe
an over simplification of the session timeout. This can easily be
proven by disabling Javascript then waiting 10 minutes - then see what
happens. If nothing happens than it is probably Javascript looking at
mouse movement. If the page does redirect then it is probably the meta
refresh in action.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New PHP tutorial
Next Topic: Nslookup
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 12:19:37 GMT 2024

Total time taken to generate the page: 0.04896 seconds