I've just tested Windows 8 with IE 11, and have no issues (to confirm, I'm using the new binaries with the "spaces" in the date format)
So if someone can please include more definite information as to exactly which client OS and browser version is used, that would help greatly, as I've yet to duplicate the issue.
Also make sure your computer's date is correct.. as the expiry is an absolute date.. meaning if your computer's date is wrong, your session cookie may expire instantly.
I've just uploaded a new set of
pre-release binaries, but added a new option "use_cookie_expires", so the "expires" set-cookie option can be disabled.
Default is 1, which is enabled, so set it to 0 if you want to disable the "expires" option.
If you want to try this, so we can confirm if the expires is affecting the set of the cookie for the given browser
1) Grab the latest pre-release binaries.
2) Confirm the compile date shows June 24th at around 15:10:
Code:
cd /usr/local/directadmin
./directadmin o
3) Add this option:
Code:
echo "use_cookie_expires=0" >> conf/directadmin.conf
4) Confirm it's set:
Code:
./directadmin c | grep use_cookie_expires
to ensure it's set to 0.
5) Restart DA forcefully to ensure the new binaries are running:
Code:
killall -9 directadmin
killall -9 directadmin
./directadmin b2000
then try again, to see if the login works.
----
What we're looking for for the login process is:
A) Load the login page, the session= cookie will either not exist, or be blank, eg:
B) Enter your User/Pass, and click "Login", and you should see this in the request:
Code:
Session file written: /usr/local/directadmin/data/sessions/da_sess_DjTO8loffOqZSmjs7b7GoLxyxH2dEj6PRZlXIZAyv0VNkCDqnK6bg1YbJYEUFIth
setLocation: http://1.2.3.4:2222/
This is also where DA sends back the set-cookie to load in it. Check your browser (if has the ability) to show you what cookies are current set.
A location redirect would go along with that, point you to where you were heading to... usually /. The request passed to DA for this request will still show "session=", but after the request is done, the browser should have it set and filled.
C) Now the browser requests / again, but should be sending the cookie:
Code:
Cookie: session=DjTO8loffOqZSmjs7b7GoLxyxH2dEj6PRZlXIZAyv0VNkCDqnK6bg1YbJYEUFIth
----
So far, we've narrowed it down to the browser not sending back the session cookie in C. I've still not received confirmation as to exactly which browser is affected.. perhaps I'm using a different version of IE?
But adding the use_cookie_expires=0 would probably solve it, but prevents the "trust this device" option from working beyond closing your browser.
----
The new binaries also have debug code, level 3900, which will spit out exactly which "Set-Cookie" header is sent to the browser.
That level gets a bit messy with a lot of output, so I usually do:
Code:
./directadmin b3900 | grep Set-Cookie
assuming you've already run it at a lower level and know what relevant bits would be showing up (as the grep hides everything else)
John