Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When a user checks the "Remember me" check box at login they still have to log back in on the next visit, no matter how soon after that next visit is. It seems that the cookie isn't set correctly. Where and how can I verify this?

In config.php the following lines are set:

$config['site']['path'] = '/';
$config['site']['server'] = 'localtwit';
session_set_cookie_params(0, '/'. $config['site']['path'] .'/');

The cookie looks like this (somewhat obscured) when I check it in Webdeveloper:

Value   061b8533dd208c9.................
Host    localtwit
Path    ///
Secure  No
Expires At End Of Session

I have a problem with the path having too many slashes in it, and that shows up in the cookie. Can this be the problem?

share|improve this question

You should use a tool like WebDeveloper in Firefox to make sure the cookie is being set.

share|improve this answer
I added some cookie information to the question. – Cros Aug 25 '09 at 12:29
Based on your cookie info, it looks like you should have: session_set_cookie_params(0, '/'); You can also just not change the cookie parameters. You only need to change them if you've got more than one PHP program installed on the same server, and you don't want their session cookies to interfere with each other. – Evan Prodromou Dec 15 '09 at 10:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.