Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When we try to switch page from HTTP to HTTPS or HTTPS to HTTP, active login not work.
for example :
if we are login using HTTP url and goes to any checkout page (HTTPS pasges) user seem logoff on that page.
if we revert back HTTP page user seem Logon.
I am using Ubuntu with nginx server and Drupal version 7.32 and securelogin as well.
Please provide some help on this. I will thankful for same.
Comments
Comment #1
dilipsingh02 CreditAttribution: dilipsingh02 commentedComment #2
babusaheb.vikas CreditAttribution: babusaheb.vikas commentedHi,
Put it in your setting.php
$conf['https'] = TRUE;
I hope your problem will solve.
Comment #3
dilipsingh02 CreditAttribution: dilipsingh02 commentedI have try this but no luck. when I switch from HTTPs url to HTTP user login is gone.
Comment #4
bjdeliduka CreditAttribution: bjdeliduka commentedHow are you "Switching" between those states?
What are the urls for the http and https (www.domain.com and secure.domain.com eg)?
Are both of these url's within the domain contained by $cookie_domain ?
One thing to consider is applying SSL to the whole site. If performance under https is an issue consider a webcache/ssl frontend like CloudFlare.
The only reason (i can think of) the "login" would not be "seen" is the cookie used to identify the session is not being seen by both states/sites.
Comment #5
mthomason CreditAttribution: mthomason commentedI'm having this issue too.
Applying SSL to the whole site is not a solution to this bug. This project exist to toggle users between http and https.
Comment #6
pandroid CreditAttribution: pandroid commentedThere is a patch for this. See issue: https://www.drupal.org/node/1400880
Comment #7
dilipsingh02 CreditAttribution: dilipsingh02 commentedComment #8
apaderno