Database sessions management and session lifetime

Hello everyone,

The story is that hosting provider has set the maximum session lifetime to 24 minutes and does not want to increase it. Now customer wants the sessions to be maintained even if the browser remains idle for at least 10 hours (1 working day).

  • Will I have full control on the lifetime of sessions if I use database? Does database session management relate to php.ini settings of maximum session lifetime in any way?

  • What stable popular library (preferably not pear) I can use for that which is compact, clean and needs as little changes as possible?

Thanks

I can’t directly answer your questions, as I’ve only used my own code for database-based session management, and not an existing library.

However, as an alternative, what you might be able to do is to use ajax to refresh the session every minute or so. That way the users stay logged in even if they don’t use the browser for a while. Would that work?