Keep logged in when reloading page after inactive for long

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
phpstt
Forum Newbie
Posts: 1
Joined: Mon Aug 29, 2011 7:42 pm

Keep logged in when reloading page after inactive for long

Post by phpstt »

Hello,

I have developed this web app that has a php log in mechanism. My user is complaining that she had to re-log in after the application browser window being minimized for one or two hours and she clicks on the "reload page" button. She hopes that she can be kept logged in for 8 hours. Can someone tell me how to achieve that? I have tried the session_set_cookie_params(0, '/'); before session_start(), I have also tried adding session.gc_maxlifetime = 28800
session.save_path = "/directory/to/Sessions" to a php.ini created under the website root.

But it still logs out after a short while. Can someone tell me how to resolve this?

Thank you!
Post Reply