Jump to content

Archived

This topic is now archived and is closed to further replies.

fezzik

Session end notification

Recommended Posts

Hello everyone! Welcome to my 1st post.

I'm looking for help with the following:

I would like to create a SESSION end notification for users. Is it possible to create a notification that informs users that their SESSION has expired and give them the option to continue the SESSION or close the SESSION?

Any help is much appreciated. If you have any additional questions please ask.

Best,

Fezzik

Share this post


Link to post
Share on other sites
Yes, on the index page, test for sessions.  If there not set, then redirect them to a page, on that page, tell them there sessions are expires, ask them if they want to renew, if they do renew them from the db,.

Share this post


Link to post
Share on other sites
I think I wasn't specific enough but I might be still somewhat asleep.

If the user is logged in and their session is created. Then they are inactive for the value defined in session.gc_maxlifetime. Instead of ending the session and having the user renew their session by logging in again, is it possible to create a method that prompts the user to either continue the session or close it using a popup window when session.gc_maxlifetime is reached. The session would never actually close until the user selects either close session from this new window or uses a logout method on the site.

Best,

Fezzik

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.