For some reason, I cannot get my PHP sessions to last for at least 10 days. The longest I can get it to work is around a half hour, then if you don't visit the site, your session is just deleted. You have to login in before the session starts, so here is my code:
You see, I tried to make the session expire after '8640000' in two ways. Neither seem to work. At the top of each page that I want the sessions to stay on, I have:
Is there anyway so that a session is kept throughout an entire script, with all the variables registered, for 10 days?
Also, I have thought about using ?PHPSESSID=blahblahetc in links. Will this fix my problem for keeping the sessions if I have that in the URL of ever single page? And if that does fix the problem, is there anyway to hide that ?PHPSESSID=safdkjsaf212412 from the top of the page and still keep the session for 10+ days with all of the variables?