When i close windows tab, session was dead! how can i stop that ?
i use this :
session_start(['cookie_lifetime' => 86400,]);
but when user close tab or move to another page session was dead !
example :
i'm in page => "home"
when i try to go this url "example.com/users"
the session was dead.
• please note this , this problem is just in my website, i can use that ( users page ) in "localhost". but i never can't close browser ( in both (localhost/website) ,
i guess if session will alive for long time ( example 1 day ) , the problem could solved.
thanks.