Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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?
Comment | File | Size | Author |
---|---|---|---|
securesite_session_destroy.patch | 1.18 KB | wub |
Comments
Comment #1
inertialacoustic CreditAttribution: inertialacoustic commented+1
Comment #3
Darren Oh