inactivity timeout

1 view
Skip to first unread message

Michael Issa

unread,
Dec 4, 2009, 3:55:04 PM12/4/09
to iphone...@googlegroups.com
hi,

can someone please tell me how it include an inactivity timeout on my
pages.

basically, the ' logout' script is called if no activity for 2 mins

regards
mike

Mark Tomlin

unread,
Dec 5, 2009, 6:18:44 AM12/5/09
to iphone...@googlegroups.com
That should really be done on the backend, as you can never trust the
client to do anything. So in the session varable, set a timestampt of
the unix epoch, and if the next page load is more then 120 seconds (2
* 60 = 120) then log the user out, else store to new time that user
was last seen.

((time() - $_SESSION['epoc']) > 120) ? logout() : $_SESSION['epoc'] = time();
> --
>
> You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group.
> To post to this group, send email to iphone...@googlegroups.com.
> To unsubscribe from this group, send email to iphonewebdev...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en.
>
>
>



--
Thank you for your time,
Mark 'Dygear' Tomlin;

Michael Issa

unread,
Dec 5, 2009, 7:10:36 PM12/5/09
to iphone...@googlegroups.com

hi,

does anyone know of a food css editor or generator?

thanks
mike

Mr Junk

unread,
Dec 5, 2009, 7:27:28 PM12/5/09
to iphone...@googlegroups.com
I use my vitamix for that although I've heard Hamilton Beach makes
some good models too.

Steve Dossick

unread,
Dec 5, 2009, 8:07:28 PM12/5/09
to iphone...@googlegroups.com
Typos aside, I love cssedit on the mac. But you'll need to know the
basics of css to really use it...it's not a generator.

Sent from my iPhone

Mr Junk

unread,
Dec 5, 2009, 11:09:30 PM12/5/09
to iphone...@googlegroups.com
Coda is great on the Mac.
-ml

jive samba

unread,
Dec 8, 2009, 12:15:12 PM12/8/09
to iPhoneWebDev
Typetester is excellent for previewing html text and then offering you
a copy/paste option of the CSS
http://www.typetester.org/


On Dec 5, 6:10 pm, Michael Issa <mikei...@gmail.com> wrote:
> hi,
>
> does anyone know of a food css editor or generator?
>
> thanks
> mike
>
> On 05/12/2009, at 10:18 PM, Mark Tomlin <dyg...@gmail.com> wrote:
>
> > That should really be done on the backend, as you can never trust the
> > client to do anything. So in the session varable, set a timestampt of
> > the unix epoch, and if the next page load is more then 120 seconds (2
> > * 60 = 120) then log the user out, else store to new time that user
> > was last seen.
>
> > ((time() - $_SESSION['epoc']) > 120) ? logout() : $_SESSION['epoc']  
> > = time();
>
> > On Fri, Dec 4, 2009 at 3:55 PM, Michael Issa <mikei...@gmail.com>  
> > wrote:
> >> hi,
>
> >> can someone please tell me how it include an inactivity timeout on my
> >> pages.
>
> >> basically, the ' logout' script is called if no activity for 2 mins
>
> >> regards
> >> mike
>
> >> --
>
> >> You received this message because you are subscribed to the Google  
> >> Groups "iPhoneWebDev" group.
> >> To post to this group, send email to iphone...@googlegroups.com.
> >> To unsubscribe from this group, send email to iphonewebdev...@googlegroups.com
> >> .
> >> For more options, visit this group athttp://groups.google.com/group/iphonewebdev?hl=en
Reply all
Reply to author
Forward
0 new messages