Saturday, March 31, 2012

Session Timeout..

Thanks for your answers.
Now I understand I have to use setTimeout to achieve my goal.
The link http://www.crowes.f9.co.uk/Javascript/timer.htm is really helpful.
Which client side event I should use to keep track the user is still using
the website.
Thanks,
Benjamin
"Steve C. Orr [MVP, MCSD]" <Steve@dotnet.itags.org.Orr.net> wrote in message
news:#lv4LermEHA.324@dotnet.itags.org.TK2MSFTNGP11.phx.gbl...
> You could try using the javascript setTimeout function set to 20 minutes
> (the default session timeout period) and then set the
> document.location.href='login.aspx' via client side code.
> Here's an example of using the javascript setTimeout function:
> http://www.crowes.f9.co.uk/Javascript/timer.htm
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
>
> "Benjamin Smith" <BenSmithNg@dotnet.itags.org.hotmail.com> wrote in message
> news:%23%23YjkXrmEHA.3608@dotnet.itags.org.TK2MSFTNGP09.phx.gbl...
visible
the
>The browser will keep track of that for you.
All you need is one client side event to fire once the trigger time has
elapsed and you want to warn the user.
You can name the event anything you want.
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Benjamin" <BenSmithNg@.hotmail.com> wrote in message
news:uan1PfQnEHA.392@.tk2msftngp13.phx.gbl...
> Thanks for your answers.
> Now I understand I have to use setTimeout to achieve my goal.
> The link http://www.crowes.f9.co.uk/Javascript/timer.htm is really
> helpful.
> Which client side event I should use to keep track the user is still using
> the website.
> Thanks,
> Benjamin
>
> "Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> wrote in message
> news:#lv4LermEHA.324@.TK2MSFTNGP11.phx.gbl...
> visible
> the
>
The event would be the TimeOut Interval triggering the function that
setTimeOut refers to.
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"Steve C. Orr [MVP, MCSD]" <Steve@.Orr.net> wrote in message
news:#wwlJFRnEHA.3868@.TK2MSFTNGP11.phx.gbl...
> The browser will keep track of that for you.
> All you need is one client side event to fire once the trigger time has
> elapsed and you want to warn the user.
> You can name the event anything you want.
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://Steve.Orr.net
>
> "Benjamin" <BenSmithNg@.hotmail.com> wrote in message
> news:uan1PfQnEHA.392@.tk2msftngp13.phx.gbl...
using
minutes
page.
>

0 comments:

Post a Comment