Page MenuHomePhabricator

Detect when session.save_handler set incorrectly
Closed, ResolvedPublic

Description

Sometimes PHP's session.save_handler is globally set to a weird value like
'user' which fails miserably when we try to do start_session().

We should detect odd settings and either return a sensible error message or
work around it by trying to set it correctly to 'files' when not using
$wgSessionInMemCache.


Version: 1.3.x
Severity: normal

Details

Reference
bz179

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 6:47 PM
bzimport set Reference to bz179.
bzimport added a subscriber: Unknown Object (MLST).

Applied Ivan's patch to head. Needs to go in for 1.3.2 also.

RobH mentioned this in Unknown Object (Task).Nov 6 2015, 7:42 PM
RobH mentioned this in Unknown Object (Task).Oct 22 2018, 7:01 PM
RobH mentioned this in Unknown Object (Task).Oct 16 2019, 5:27 PM
RobH mentioned this in Unknown Object (Task).Aug 24 2020, 9:03 PM