Topic: How can i retain the session for atleast 24 hours

As i have tried to change the session to keep it alive for 24 hours. But it doesnt working,

Help me to keep the session active for atleast one day. i tried it by commenting as much as possible things per my knowledge. but didnt help me.

changed login_timeout function and tried to set sesion cookie as well. but nothing worked for me, looking for experts solution, like @joe, @apmuthu, @kvvaradha,

Re: How can i retain the session for atleast 24 hours

After code changes, close all browser instances, clear cache and try again.

Re: How can i retain the session for atleast 24 hours

@shan,
This is happening because the session has been stored in your cpanel or the localhost php level session handler used by default. It will be erased in certain time. you can increase the limit if you are using it locally. but in cpanel kind on softwares. they dont allow you to keep it more than 1 hour i guess. If you wish to keep it on cpanels. there is a php session library Zebra is there to help to store your session on database and get it to work more than 24 hours like based on your extended time gap.

I have integrated it for an user. it works fine for him.

Subscription service based on FA
HRM CRM POS batch Themes