set a longer expiry on bakery cookies for d.o

seanr - October 30, 2009 - 15:03
Project:Drupal.org webmasters
Component:User account problem
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

I administer dozens of Drupal sites and all seem to keep my session active for at least a couple weeks without having to log back in. Drupal.org's cookies, however, never seem to last more than a day. I have to log back in nearly every day. The expiration date appears to be set for ~24 days in the future, but the cookies literally _never_ last that long. I've got the same problem in Firefox and Chrome (though I notice it far more in Chrome since I use it the most). All of my other sites' cookies work fine.

#1

Gerhard Killesreiter - October 30, 2009 - 15:24

This is because the bakery cookie is limited to 12 hours time.

We figured a serious Drupal user would visit d.o at least once every 12 hours.

#2

seanr - November 4, 2009 - 22:19

LOL, cute. Love the CHOCOLATECHIP cookie d.o sets, too, BTW. Any ideas for a fix, though?

#3

Gerhard Killesreiter - November 4, 2009 - 22:59

It's not broken, this is a config issue. We decided 12h would be enough.

#4

kiamlaluno - November 5, 2009 - 09:44

Could the setting be changed basing on this report?

#5

Gerhard Killesreiter - November 5, 2009 - 09:48

In principle yes.

#6

kiamlaluno - November 5, 2009 - 10:17

I think that 24-48 hours would be a valid value, if there are not other reasons to not increase it.
Clearly, 24 days is too much, IMO.

#7

maragnis - November 5, 2009 - 13:10

I also vote for at least 48 hours. 12 hours seems a bit too short especially if you're not doing Drupal work full time.

If there were some serious transactions going on through this site, like buying goods or moving money, I can see a justification for keeping it short. Since this is mostly an informational site, we should be able to keep it longer.

#8

litwol - November 6, 2009 - 17:51

#3 based on what converstaion ?

Many have expressed their interest keeping session alive longer than 12h, especially if you consider weekends. 2-3 day long session to account weekends would be perfect solution imho (and others).

#9

stephthegeek - November 7, 2009 - 06:12

Ditto, the 12h thing is seriously annoying to me. I also use three different computers, usually not on the same day. I'd be highly in favour of 2-3 days.

#10

kiamlaluno - November 7, 2009 - 10:01

I think that a possible value could range from 2 to 5 days. Especially in the week ends, 2 days can be a value too restrictive.
I don't know if there are some cons in increasing the value so much; I don't see any reason to not do it, but probably somebody could find a reason to not increase the value.

#11

-Anti- - November 7, 2009 - 10:38

Can anyone explain why the login cookies don't last for many weeks, like virtually every other site on the internet?
Exactly what advantage is there to anyone, to have to login every 12 hours?
If I understood why I had to login every time, maybe I wouldn't feel so pissed off about it?

Also, virtually 99% of all other websites allow you to over-ride the default setting with a 'remember me' checkbox.
Is there a good reason Drupal doesn't provide one of these in core? Is there a good reason Dorg doesn't use a module?
Would this be a solution: keep the default at 12 hours, but provide a box for those needing longer?

Cheers.

#12

VM - November 8, 2009 - 19:36
Category:bug report» feature request

Queue clean up

Moving to feature request.

Can anyone explain why the login cookies don't last for many weeks, like virtually every other site on the internet?

One example of why long session lifetimes can be an issue;
I login to d.o. at work on a company machine while eating lunch. I forget to logout and the session doesn't die when the browser is closed. Anyone else who sits at this machine now has access to my d.o account or any account on any site I'm logged into with extended sessions.

#13

litwol - November 14, 2009 - 19:37

I was just hit with this annoying behavior *again* both friday and saturday. Just how many votes does it take to change this behavior ?

#14

kiamlaluno - November 14, 2009 - 22:45

I think that is not just a problem to increase the lifetime of the sessions; as VeryMisunderstood reported (and I agree with him), long sessions could be a problem for somebody, or in some cases.

Rather than changing the sessions lifetime, it would be useful to allow to the users to decide if they want a longer session, as it is only the users who know from which computer they are connected.
In the situation as described from VeryMisunderstood, also 12 hours could be too much; differently, in my situation, 24-48 hours would be a good value, especially because I use only the computer I have at home, and nobody else uses my computer (and therefore, nobody can write something on Drupal.org using my account). Other people can have different needs, and probably there isn't a value for which everybody agrees.

#15

-Anti- - November 15, 2009 - 13:21

Virtually every other website on the internet has no session retention, unless you tick a 'remember me' box which usually lasts for a couple of weeks. If you want the website to forget, you simply log-out. There is a module that provides such a box. I don't understand why Dorg doesn't just use that.

Why is drupal somehow different from nearly every other website on the Net anyway?
It's incredible that the choice of providing a 'remember me' box isn't in core!

Anyway, the way it is now, you could still forget to log-out and for the REST OF THE DAY someone else can login as you, so I don't see how the particular issue of forgetting to log out is solved by a 12-24 hour session retention? It seems a pretty weak reason for forcing thousands of people to login to Dorg every single day.

Maybe there is another reason? As I said, the most frustrating thing about this isn't the actually logging in itself; it is not understanding *why* you're being forced to login everyday.

#16

litwol - November 15, 2009 - 18:28

I have a desire to expand on the topic of "Some people's forgetfulness should not penalize others" however, i think you get the point.

This is a religious battle of opinions. I fear rationalization will not help here and we have to come up with a different approach.

An idea mentioned above of "remember me" checkbox satisfies both camps, those that wish to use it and those that do not.

The million dollar question is: How do we proceed and will this solution be accepted on d.o?

#17

litwol - November 15, 2009 - 18:32
Component:Other» User account problem
Category:feature request» task

Setting appropriate issue status in order to gain attention from webmasters to pass the judgement.

I am seeking constructive suggestion/steps which must be taken in order to get this feature to d.o. (ex: write patch, find testers, who to talk to, etc etc)

#18

greggles - November 15, 2009 - 19:50
Title:drupal.org session cookies don't ever seem to last more than a day or two» set a longer expiry on bakery cookies for d.o

A more accurate title. Also, the person to make the final call here is probably Killes and he is on vacation until January. So, new comments before then are likely pointless.

#19

Gerhard Killesreiter - November 21, 2009 - 09:23

I am not yet on vacation. I am not oposed to increase the time. How about 3 days?

#20

-Anti- - November 21, 2009 - 10:31

Just to clarify my perspective, I'm actually against simply raising the session retention. I feel it would be better to have a very low session retention by default for the reasons stated (eg. forgetting to log out on a shared computer), but then to provide a 'remember me' box, for those that want to use it, set to something reasonable (such as 48 to 36 hours, although two weeks would be fine for my personal taste).

I should also mention that for the last few months firefox has had a problem with my Dorg saved password. I thought it was Dorg making me type my name and password in each day, but in fact once I had deleted a malformed, duplicate entry in my saved passwords list, firefox now fills in the form automatically. That goes a long way to solving my personal annoyance, as now I just have to click the login button.

#21

kiamlaluno - November 21, 2009 - 11:50

3 days is fine, IMO.

To increase the cookies expiration should be done until Drupal.org doesn't implement a way to allow to users to decide how long the session cookies should last (if such feature will ever be implemented).

#22

Gerhard Killesreiter - November 21, 2009 - 13:08

I've set it to 3 das on d.o. The webmasters of the slave sites need to do so as well in order to be effective.

#23

greggles - November 21, 2009 - 14:46

Groups is updated to 259200 seconds.

 
 

Drupal is a registered trademark of Dries Buytaert.