I have discovered problem with mixed mode session. When mixed mode enabled:
$conf['https'] = TRUE;
we should have same session for secure and insecure pages (https and http) but it does not works and starts new anonymous session instead.
Test environment:
clean Drupal 7.28 (no contrib installed), PHP 5.3.10, Ubuntu 12.04 (server and client), any browser
Ways to reproduce:
1. Add next lines to your settings.php:
$conf['https'] = TRUE;
2. open incesure user login page (http:///user)
3. Login
4. Open any site page under SSL (https://)
5. Open any insecure page again
Expecting to be logged in with same session for secure and insecure pages.
Happend instead - new anonymous session started for secure and insecure pages.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | mixed_mode_session-2283711-0.patch | 799 bytes | d.olaresko |
Comments
Comment #1
d.olaresko commentedPatch added
Comment #2
d.olaresko commentedComment #3
morgan_jennevret commentedI've been having the same problem as you dolar4ik. But want to avoid patching core.
Now I think I have solved the issue with the help of https://www.drupal.org/node/1050746#comment-5194462
Try having your login page on https, and keep $conf['https'] = TRUE;
That did it for me.
Comment #4
waqarit commentedhttps://www.drupal.org/files/issues/mixed_mode_session-2283711-0.patch this patch working fine on Drupal 7.52
Comment #5
amit0212 commentedPatch