We are encountering the following error when using securesite and trying to log out:

Notice: A session had already been started - ignoring session_start() in securesite_user_logout() (line 281 of <full path removed>/docroot/sites/all/modules/securesite/securesite.module).

I'm attaching a patch of the code change we've used to resolve the issue - it involves being a little heavier handed and explicitly destroying the session before starting a new one which is what happens on line 281. As of PHP 4.3.3, calling session_start() when a session already exists will result in an error so I was surprised to see that this was not already reported. Perhaps it has to do with our configuration, somehow?

CommentFileSizeAuthor
securesite_session_destroy.patch1.18 KBwub
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

inertialacoustic’s picture

+1

  • Darren Oh committed 14fdbfa on 7.x-2.x authored by wub
    Issue #2497271 by wub, Darren Oh: Fixed logout errors.
    
Darren Oh’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.