Page 1 of 1

session_set_cookie_params

Posted: Sun May 07, 2006 7:45 pm
by William
Hello PHPDN,

I am currently working on a web site that I used sessions for. Well I'm trying to get the session_set_cookie_params() function to set it up so they stay logged in even after they close the browser. I have it set so when they login it sets certian varibles using super globals and right after they are declared I have

Code: Select all

session_set_cookie_params(time()+9999, "/", "domain.ext", false);
What am I doing wrong? Thanks for any help on this subject.

Posted: Mon May 08, 2006 2:45 am
by someberry
Couple things you may wish to try:
1. Take out the time().
2. You are doing session_start() after this command right, not before?
3. Try setting an SLD.