The place where everyone hangs out, chats, gossips, and argues
User avatar
By Console
#301320
Is it 24 hours, or is it in the morning, say, after a computer restart? Some companies have programs that remove all existing cookies on startup on their computers. If it's a home computer, then it's possible that you've got a program doing something similar.
User avatar
By Console
#301327
I'm not sure what the 'k' cookie is for, but I've just blanked mine and I'm still logged in. As for the 'u' cookie, '1' is the correct value for you. There should be a 'sid' cookie set as well, which is the important one. If it is there, check the expiry on it; it should be set for one year in the future.
User avatar
By MK Chris
#301335
Console wrote:I'm not sure what the 'k' cookie is for, but I've just blanked mine and I'm still logged in.

Presumably if you're already logged in and have an active session, the absence of, or lack of data for this cookie won't make a difference, but according to the below post (admittedly not made by a phpBB team member), it is required for the 'autologin' feature:
'A_Jelly_Doughnut' on phpBB.com wrote:The SID cookie, the K cookie, and the U cookie are all used to identify a user for autologin. The K cookie is used to match up wtih an entry in phpbb_session_keys.
User avatar
By Console
#301342
I currently only have two cookies set for this domain (I've deleted the rest), the 'sid' cookie and a 'style_cookie' (which I can't imagine is involved in any way. I've shutdown my browser and opened it again and I'm still logged in fine. I've not sure what the other cookies are for, but they seem rather superfluous.

If I change the 'sid' cookie then I'm no longer logged in (unless but some sheer fluke I happen to pick another valid sid, in which case I'll be logged in as someone else), but with that, and only that, set, I'm logged in fine, and the expiry date is currently 'Tue, 19 Aug 2008 14:24:13 GMT'.
User avatar
By Chris
#301344
Ah, okay. The cookies are still in firefox (sid, u and k with proper-looking values), but when I visit the forum they are set so that k is cleared, and u = 1. This, as is said above, appears to happen randomly every now and then, mostly when you close the browser and reopen it, but not by any means always.

I suspect phpBB is at fault rather than firefox.

All the expiry dates are set for a year hence.
User avatar
By MK Chris
#301347
Console wrote:I currently only have two cookies set for this domain (I've deleted the rest), the 'sid' cookie and a 'style_cookie' (which I can't imagine is involved in any way. I've shutdown my browser and opened it again and I'm still logged in fine. I've not sure what the other cookies are for, but they seem rather superfluous.

If I change the 'sid' cookie then I'm no longer logged in (unless but some sheer fluke I happen to pick another valid sid, in which case I'll be logged in as someone else), but with that, and only that, set, I'm logged in fine, and the expiry date is currently 'Tue, 19 Aug 2008 14:24:13 GMT'.

Yeah, but my point is that surely it only needs the 'sid' cookie if you already have an active session, since the session is valid and shows you being logged in; I believe the only time the 'u' and 'k' cookies are needed are when your session expires (due to inactivity) or is otherwise not found and you have set yourself to auto-login. It checks the session is valid, if it is and you are logged in then it need do no more, otherwise it would check the other cookies to see if you have set the auto-login feature and if so, create a new session. Consequently, restarting your browser wouldn't cause you to use the auto-login feature, as the session is found and valid.

I could be wrong though.
User avatar
By Console
#301348
No, you're probably correct, although the session shouldn't be expiring that quickly.

I've just been doing some testing with the logging in process, and amusingly, I seem to have a problem, that while is probably connected to the above problems, is the complete opposite; I cannot, no matter what I do, get the board to grant me a session cookie when logging in, it will only grant me a permanent cookie, which means that if I wanted the session to end when I close my browser, it won't. The only way I can do to replicate the functionality is to disable my cookies and rely of the 'sid' GET variable.

It's certainly an interesting problem, especially as it's entirely inconsistent.
User avatar
By Gaspode_The_Wonder_Dog
#301350
Chris wrote:My 'u' cookie should be 27.
The expiry is all set fine, it's something else that's weird.


Is weird a technical term?
User avatar
By MK Chris
#302457
When you log in, do you tick the "automatically log me in" box? If not, try it.
User avatar
By Yudster
#302465
I do that every time. And the fact that I have said that I do it every time should lead you to the conclusion that it currently has no effect. Its not particularly a problem for me, but I have eaten all the cookies and all that, so I wonder why?
User avatar
By Gaspode_The_Wonder_Dog
#302478
Topher wrote:When you log in, do you tick the "automatically log me in" box? If not, try it.


I read that question as "are you a complete moron?" so I'll ignore it on the basis that it was late and you were tired/drunk.
User avatar
By MK Chris
#302493
Haha, sorry I didn't mean it like that.
User avatar
By Chris
#302538
If your IP address changes, or if you log in from a PC with a different IP address, it'll drop your session. The idea is that it stops someone hijacking your login session ... I can turn it off I guess if nobody is bothered.