?
avatar blackcondorweb
blackcondorweb
12 Jan 2016

I upgraded my site from 3.2.x to 3.4.8 and after that i was not able to login.
after a week of searching and trying out the fixes from forums, i found out that the one causing my problem is that the session.secure-cookie setting in my php.ini was set to 1.

setting it to 0, i was able to login in 3.4.8.

i wonder why even though its value was set to 1, 3.2.x is just working fine. but 3.4.8 is not.

my php version is 5.4.44 on squeeze.

can you guys possibly confirm setting secure-cookie to 0 will not compromise the joomla site?

thanks

avatar blackcondorweb blackcondorweb - open - 12 Jan 2016
avatar roland-d
roland-d - comment - 12 Jan 2016

I can confirm I can't login to:

  • Joomla 2.5.28
  • Joomla 3.3.6
  • Joomla 3.4.4
  • Joomla 3.4.8

when I have session.cookie_secure set to 1. So I don't think it is something new.

Like you I wonder why it is set to one as per default it is turned off in php.ini

avatar blackcondorweb
blackcondorweb - comment - 12 Jan 2016

hi @roland-d

thanks for your reply.
i am thinking though that it is set 1 in our server because we are using https.

i'll be deploying j 3.4.8 (with https) in a while so i will know if it will make any difference if the value is 0 or 1.

avatar PhilETaylor
PhilETaylor - comment - 12 Jan 2016

Unable to replicate.

Steps taken:

  1. Build a one-click server with Joomla 3.4.8 installed at DigitalOcean (PHP 5.5.9-1ubuntu4.14 by default)
  2. SSH and change the php.ini setting session.cookie_secure = 1
  3. Restart apache
  4. install letsencrypt and install a SSL Certiicate
  5. restart apache
  6. Go to admin /administrator/ and login
  7. Result: I'm logged in...

screen shot 2016-01-12 at 12 57 02

avatar blackcondorweb
blackcondorweb - comment - 13 Jan 2016

Hi @PhilETaylor,

Thanks for your confirmation.
I confirmed as well that it doesn't matter whether the cookie_secure is On or Off in the https environment. I can just login to the site with either values.

So maybe I can say that this is not a joomla issue but a configuration mismatch.

Thanks for your help guys and I am closing this now.

avatar blackcondorweb blackcondorweb - change - 13 Jan 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-01-13 06:43:24
Closed_By blackcondorweb
avatar blackcondorweb blackcondorweb - close - 13 Jan 2016
avatar blackcondorweb blackcondorweb - close - 13 Jan 2016
avatar brianteeman brianteeman - close - 13 Jan 2016
avatar GitHubLarry2
GitHubLarry2 - comment - 26 Jan 2016

I had this same issue. I did a password reset from the site and also through the database with no luck. I had to restore the backup to gain access to the site. Also users weren't able to login either. Now I would like to update without an issue and I would prefer to keep the php.ini setting session.cookie_secure = 1. Any suggestions? Thank you

avatar GitHubLarry2
GitHubLarry2 - comment - 26 Jan 2016

I have upgraded again but I have made sure that my cookie cleaner does't remove the cookie for the site. So far I have no issues but lets see what happens when the cookie expires. At least I know how to recover.
See ya later!

avatar PhilETaylor
PhilETaylor - comment - 26 Jan 2016

Like I said, I investigated this issue fully and could not replicate the issue

avatar brianteeman brianteeman - change - 8 Mar 2016
Labels Added: ?

Add a Comment

Login with GitHub to post a comment