Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D Drupal
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 55
    • Issues 55
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Development
  • Drupal
  • Issues
  • #98

Closed
Open
Created Dec 11, 2019 by Michael McAndrew@michaelmcandrewDeveloper

CiviCRM session instance not working when Masquerading in Drupal 7

Have just upgraded to D7-5.20.1 and noticed that CRM_Core_Session::singleton() does not work when masquerading.

Setting a breakpoint in a Drupal page while masquerading and running Civi::log()->debug(var_export(CRM_Core_Session::singleton(),true))

Results in the following in the log:

Dec 11 13:08:57  [debug] CRM_Core_Session::__set_state(array(
   '_key' => 'CiviCRM',
   '_session' => 
  array (
    'masquerading' => '76',
  ),
))
Edited Dec 12, 2019 by Michael McAndrew
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking