troubleshooting Question

How do I keep a JWT session alive as long as the user is active?

Avatar of Mark Willis
Mark WillisFlag for United States of America asked on
PHPSecurity* JWT
8 Comments1 Solution24 ViewsLast Modified:
I know how to set a fixed session length in both JWT and the $_SESSION cookie. I'm using the session cookie to pass the JWT when a page loads.
How do I reset the session countdown timer back to its initial value every time a page is loaded?
IOW, if the session length is defined as 15 minutes, I want the session to remain alive so long as the user is active no matter how long that may take. I only want the session to timeout 15 minutes after the user stops loading pages.

Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros