Bug 298660 - konqueror doesnt keep me loged on imdb
Summary: konqueror doesnt keep me loged on imdb
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: 4.8.1
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-23 13:23 UTC by karaluh
Modified: 2012-08-17 21:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 4.9.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description karaluh 2012-04-23 13:23:49 UTC
As in summary

Reproducible: Always

Steps to Reproduce:
1. Log in on imdb.com
2. close konqueror
3. reopen konq and open imdb.com
Actual Results:  
You are loged out

Expected Results:  
You are loged in

Firefox and Chrome don't have this issue.
Comment 1 Dawit Alemayehu 2012-08-14 22:30:33 UTC
ALT+F2, enter cookies and press enter. When the cookie configuration dialog popups check and make sure the "Treat all cookies as session cookies" option is not checked. Otherwise, all cookies received from servers will be treated like session cookies and deleted when you exit the application (konqueror).
Comment 2 karaluh 2012-08-16 06:49:34 UTC
(In reply to comment #1)
> ALT+F2, enter cookies and press enter. When the cookie configuration dialog
> popups check and make sure the "Treat all cookies as session cookies" option
> is not checked. Otherwise, all cookies received from servers will be treated
> like session cookies and deleted when you exit the application (konqueror).

It's not, so everything should be fine.
Comment 3 Dawit Alemayehu 2012-08-16 21:24:40 UTC
Ok. I found why this happens. It is a bug with the site sending invalid cookie expiration date. More specifically the site sends the following cookie expire header on three essential cookies: "expires=Thu, 30 Dec 2037 00:00:00 GMT;". Unfortunately "30 Dec 2037" is a Wednesday and not a Thursday ; so the cookie expiration date parsing code fails. As a result the cookie will be treated like a session cookie and removed when the session ends.

Anyhow, it is yet another crappy site we have to deal with. It will be addressed soon.
Comment 4 Dawit Alemayehu 2012-08-17 21:35:21 UTC
Git commit f2e2737435d7dc60d670f56cf4a132e0865c3ab6 by Dawit Alemayehu.
Committed on 17/08/2012 at 21:51.
Pushed by adawit into branch 'KDE/4.9'.

Fix cookie expiration date parsing. Now the date parsing attempts to comply
with the specifications in RFC 6265 sec 4.1.1 and RFC 2616 sec 3.3.1.
FIXED-IN: 4.9.1

M  +52   -28   kioslave/http/kcookiejar/kcookiejar.cpp
M  +9    -0    kioslave/http/kcookiejar/tests/cookie.test
M  +11   -4    kioslave/http/kcookiejar/tests/kcookiejartest.cpp

http://commits.kde.org/kdelibs/f2e2737435d7dc60d670f56cf4a132e0865c3ab6