Using php, prompt user to re-authorize at session timeout? -
i'm working using session authorize users. works fine long move between pages, , we've got timeout set 2 hours, won't issue. however, users work with, can imagine them getting preoccupied after doing work on single page, letting sit 2 hours. if session times out, lose work, , i've had testers unhappy me because session timed out (only 24 minutes then, though).
is there way run script when session times out, can @ least ask user login again? know can via javascript -- if modify every single 1 of more 100 .php scripts used website. have single auth script, , if run there, nice.
thanks,
sean.
prompting user using php or other server-side scripting language not possible without refresh. you're asking server serve browser didn't request, why not possible. know can use javascript job done.
edit:
the following not set in stone or true in cases might apply situation. run script when session times out have :
- test session time out.
- to test session time out, script has executed.
- for script executed, has requested.
- to test session time out, script has executed.
Comments
Post a Comment