Hello ,
Sessions cookies are removed once the browser is closed or the user has navigated away from the website .. that's good , but I have two questions :
1 - Cookie only is removed , and the flat file of the session is still stored on the server although I will never need it as the cookie is removed from the user machine and I can not identify him again ,... why PHP still keeps the flat file that holds the data ?
2 - to make sessions last for longer time(not to die after closing browser) , should I use directive: session.cookie_lifetime or session.gc_maxlifetime or both ?? I got an answer that I should use only session.cookie_lifetime. BUT :
I read that session.gc_maxlifetime directive is responsible for removing the flat files after a certain number of seconds ( default is 1440 = 24 minutes ) .. so , no point when setting the cookie to last for longer time(that holds just the SID ...name of the flat file ) via session.cookie_lifetime if the other directive will remove the flat file that holds the actual data ....