Jump to content


Photo

Session end notification


  • Please log in to reply
2 replies to this topic

#1 fezzik

fezzik
  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts

Posted 20 September 2006 - 04:20 PM

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

#2 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 20 September 2006 - 04:22 PM

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,.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#3 fezzik

fezzik
  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts

Posted 20 September 2006 - 04:37 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users