I have mini content management sytem with basic login system. I wonder, how to prevent session expiration if user active for ex. typing content or something else? Is there any way to do it?
How can i rearm the session every time an interaction takes place?
I have mini content management sytem with basic login system. I wonder, how to
Share
You would need to attach an event handler to some user interaction event, such as mouse movement, or keyup, or something similar. On the event you could request something from the server using ajax. This would then keep the session alive.