CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.6 Release Testing »
  • CiviCRM Core Session
Pages: [1]

Author Topic: CiviCRM Core Session  (Read 527 times)

rocxa

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 4
  • CiviCRM version: 4.5.5
  • CMS version: Drupal 7.34
  • MySQL version: 5.1.71
  • PHP version: 5.3.3
CiviCRM Core Session
January 26, 2015, 03:45:39 am
Please could someone shed some light on what this bit of code is doing?

CRM/Core/Session.php line 126

Code: [Select]
      if ($config->userSystem->is_drupal && function_exists('drupal_session_start')) {
          // https://issues.civicrm.org/jira/browse/CRM-14356
          if (! (isset($GLOBALS['lazy_session']) && $GLOBALS['lazy_session'] == TRUE)) {
            drupal_session_start();
          }
          $_SESSION = array();
        }
        else {
          session_start();
        }

it appears to be checking if Drupal has acreated a lazy session.. if not, it creates one then wipes it?

This code is linked to an error where sessions for contribution and event bookings break if the session is lazy.  We still experience this issue with 4.5.5 and 4.6
https://issues.civicrm.org/jira/browse/CRM-14356

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: CiviCRM Core Session
March 27, 2015, 09:33:32 pm
@roxca,

Try my post on this topic at http://forum.civicrm.org/index.php/topic,31800.msg136249.html

Hopefully that sheds light on the issue.

Ken

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: CiviCRM Core Session
March 27, 2015, 09:38:55 pm
@roxca,

The symptom of the issue I was having, that led to this code being inserted, is "After the page request is finished there will be two rows in the Drupal sessions table that share the same ssid (secure session id). Drupal assumes there is only one, which leads to all sorts of subtle, odd behaviours". In particular, folks would hit "Confirm" while registering for an event an be thrown back to an empty registration page, rather than progressing to the confirm page.

Do you have that symptom?

Ken

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.6 Release Testing »
  • CiviCRM Core Session

This forum was archived on 2017-11-26.