NetTalk Central

Author Topic: Timeout session and page buttons (first/prev/next/last)  (Read 3946 times)

alex.kolaric

  • Full Member
  • ***
  • Posts: 151
  • Do it or do not, there is no try
    • View Profile
    • Email
Timeout session and page buttons (first/prev/next/last)
« on: February 03, 2009, 01:11:30 PM »
Hi,

I just noticed that when the session expires pressing on page buttons doesn't invoke login screen as it does if I click on option from the menu for example. I use 4.30 for 9054-9059. This is the problem if the user tries clicking and nothing happens, looks like app not functioning. It appears that checking of the session is executed only initially when the page is started. I checked this behavior with Basic With Login example, with same results.

Any suggestions how to bypass it?

thanks,
Alex

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Timeout session and page buttons (first/prev/next/last)
« Reply #1 on: February 04, 2009, 06:36:08 AM »
_checking_ is done with every request.

But the next/prev buttons etc are asyncronous. Re-directing to the login page requires a synchronous (ie GET or POST) request.

Cheers
Bruce

alex.kolaric

  • Full Member
  • ***
  • Posts: 151
  • Do it or do not, there is no try
    • View Profile
    • Email
Re: Timeout session and page buttons (first/prev/next/last)
« Reply #2 on: February 04, 2009, 06:45:37 AM »
Hi Bruce,

I guess that the answer to my question is then "no". In that case I will have to find another way to show login form when the timeout occurs. What is the best practice in your opinion? Timer maybe?

thanks
Alex

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Timeout session and page buttons (first/prev/next/last)
« Reply #3 on: February 04, 2009, 06:47:51 AM »
Definitely not a timer.

Timers constantly polling the server are a really, really, bad idea.

Probably a better plan is to set the session timeout period so that the user doesn't get logged out.

Cheers
Bruce