[mythtv-users] MythWeb cookie very short-lived
    Michael T. Dean 
    mtdean at thirdcontact.com
       
    Sun Apr  2 21:22:26 UTC 2006
    
    
  
On 04/02/2006 04:38 AM, Chris Petersen wrote:
>> So, it is not a matter of bumping up the timeouts, but of refreshing the 
>> date and time on each visit.
>>     
> This is strange.  I can easily bump up the expiration of the cookie to a 
> year, but I'd rather find the root cause.  I'll poke around a bit and if 
> I can't find an answer, but I did just bump the cookie timeout up to 365 
> days.
>   
Yeah, you bumped it--to 30 years (minus leap times):
Set-Cookie: mythweb_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; expires=Tue, 
25-Mar-2036 21:00:27 GMT; path=/
Guess that works, though--and gives you plenty of time to figure out the 
issue.  :)  I think you meant ( http://svn.mythtv.org/trac/changeset/9604 ):
session_set_cookie_params(60 * 60 * 24 * 365, '/');    // 1 year timeout 
on cookies
Anyway, I was going to see if I could figure this one out since I'm 
taking up so much of your time with URL encoding of the recording 
filenames, but it works on my system.  Every time I send a new request, 
I get a new expiry:
Set-Cookie: mythweb_id=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx; expires=Tue, 
25-Mar-2036 21:01:58 GMT; path=/
And, my browser (FireFox 1.5/Linux) accepts it and updates the expiry.
So, Thomas, check your FireFox settings.  Make sure 
"network.cookie.lifetimePolicy" is set to 0 ( 
http://kb.mozillazine.org/Firefox_:_FAQs_:_About:config_Entries#Network..2A 
)--you can change it in about:config .  If you have it set to 3 and set 
"network.cookie.lifetime.days" to 1 or 2, you'd get something like thre 
results you've seen.
As a matter of fact, you might want to set all your cookie settings to 
defaults.  To do so, type "cookie" (no quotes) in the "Filter" text box 
at the location "about:config" (no quotes).  Then, right-click any bold 
preference and select "Reset."  (Leave "network.cookie.prefsMigrated", 
"pref.privacy.disable_button.view_cookies", and "privacy.item.cookies" 
as they are, though.)
HTH.
Mike
    
    
More information about the mythtv-users
mailing list