SMF Support > SMF 1.1.x Support

Cookies

(1/11) > >>

Yeehaw:
Ok, first I had the problem with not being about to log out, that really didn't bother me.
One of my 'sometime' users was having the problem of not being able to stay logged in, I couldn't duplicate the problem since I couldn't log out, so I renamed what the cookies were called, cleaned my cookies out, and immediately had to log back in. Good, I figured problem solved.

Note all this was without changing any settings from my upgrade from YabbSE 1.5.5, other than renaming the cookies from yabbusername14 to dasmfusername.

However, now you need to log in every time - whether forever has been checked or not - the session is not saved upon opening another window, be it IE, Netscape, or Firebird. Cookies are not being set in cache or any other place in the browsers. I have tried "Enable local storage of cookies" and "Use subdomain independent cookies Warning: Turn off Local Cookies first!" settings to no effect. Nothing works as far as cookies are concerned.

What am I missing?

I have created a user "datest" with the pass of "passwrd" for your convenience.

Douglas:
No problems here.  What's your cookie's exact name?

For people that can't stay logged in, have them check to make sure they're allowing cookies from desertaquaria.com and that the site is also allowed in any firewall settings.

Windows XP and IE 6 both have enhanced security settings, which prevent cookies, by default.

[Unknown]:
I was not able, with Internet Explorer, to login to your forum and stay logged in.

This is a cookies issue; in YaBB SE, you wouldn't be able to login at all.

Using Opera, I can tell that no cookie is being set.  I recommend you try a shorter cookie name, and make sure it has no spaces or anything in it, except A-Z, a-z, 0-9.  I also recommend you use "sub domain independent cookies".

-[Unknown]

Yeehaw:
Ok, I shortened the cookie name to "dasmf", no spaces. Same issue.
I checkmarked "sub domain independent cookies", same same.

Mind you, I haven't changed any file/server permissions since I set YaBB up over three years ago, YaBBSE over one year ago,  and did a straight -problem free- SMF upgrade the day it came out.

What shall I try next?

[Unknown]:
Sources/LogInOut.php, find: (backup first!)

setcookie($cookiename, serialize(array($ID_MEMBER, $password)), time() + (60 * $modSettings['cookieTime']), $cookie_url[1], $cookie_url[0], 0);

Add before:

log_error('Setting cookie: ' . $cookiename . '=' . serialize(array($ID_MEMBER, $password)) . '; expires=' . (time() + (60 * $modSettings['cookieTime'])) . '; ' . $cookie_url[1] . ' ' . $cookie_url);

And then try to login with a test user, with "stay logged in" checked.  After that, replace LogInOut.php with the backup.

Then, can you tell me what it put in your error log?

-[Unknown]

Navigation

[0] Message Index

[#] Next page

Go to full version