Any way to force sessions to *not* update on certain AJAX requests? |
Hi all,
I'm a fairly experienced CI dev but I'm having trouble finding a good solution for this. Essentially, I'm trying to implement "idle logout" (session expiration) detection. I'd like to be able to periodically make an AJAX call to check if the current session entry still contains credentials but by making these AJAX calls, the session is updated automatically to extend its validity (indefinitely!). Has anyone found a way to do this? Cheers! |
Messages In This Thread |
Any way to force sessions to *not* update on certain AJAX requests? - by twistedpixel - 01-02-2017, 07:58 AM
RE: Any way to force sessions to *not* update on certain AJAX requests? - by InsiteFX - 01-02-2017, 12:08 PM
RE: Any way to force sessions to *not* update on certain AJAX requests? - by twistedpixel - 01-02-2017, 01:07 PM
RE: Any way to force sessions to *not* update on certain AJAX requests? - by InsiteFX - 01-03-2017, 05:22 AM
RE: Any way to force sessions to *not* update on certain AJAX requests? - by twistedpixel - 01-03-2017, 06:10 AM
RE: Any way to force sessions to *not* update on certain AJAX requests? - by Narf - 01-03-2017, 06:51 AM
RE: Any way to force sessions to *not* update on certain AJAX requests? - by twistedpixel - 02-01-2017, 11:04 AM
|