]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/login_problem.mdwn
bug report
[git.ikiwiki.info.git] / doc / bugs / login_problem.mdwn
1 For around 2 weeks, I've been getting an increasing quantity of nonspecific
2 reports from users of login problems on ikiwiki sites, mostly joeyh.name
3 and git-annex.branchable.com. A few users are still logging in
4 successfully, but it seems to be hitting many users; post volume has gone
5 down more than holidays would explain. --[[Joey]] 
7 It doesn't seem limited to any login method; email and password have both
8 been said not to work. (Openid too, but could be openid provider problem
9 there.)
11 After a few tries
12 I seem to have reproduced the problem with email login; I ended up at a
13 "Error: login failed, perhaps you need to turn on cookies?" 
14 page but my browser had an ikiwiki session cookie. And,
15 looking in the session database file, the cookie id was in there. Then I
16 went to "/do=prefs" in the same browser, and I was actually already 
17 logged in. 
19 That points at a problem with the "postsignin" redirect;
20 if the session does not get a postsignin url set, it can error out that way
21 despite being logged in.
23 Reproducing again, I posted the login form, and before clicking on the
24 login link, looked at the session.db -- it contained an entry for my session,
25 but without a postsignin url.
27         $ strings sessions.db
28         $D = {'_SESSION_ID' => 'xxx','_SESSION_REMOTE_ADDR' => 'yyy','_SESSION_ATIME' => 1515106022,'_SESSION_CTIME' => 1515105990};;$D
30 The postsignin url is certianly getting set at other times though,
31 and why would this have only recently started to affect lots of users?