Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#805 closed Bug (fixed)

PHP session settings

Reported by: Sych Owned by:
Priority: major Milestone: Piwik 0.4.1
Component: Core Keywords: session
Cc: Sensitive:

Description

PHP session settings is wrong if user use memcached session storage.

if you do not comment line in index.php

@ini_set('session.save_handler', 'files');

piwik crashed with PHP error

Can not open file
open("tcp://127.0.0.1:11211/some_rand_sessionid"... );

Change History (5)

comment:1 Changed 5 years ago by vipsoft (robocoder)

How are you calling Piwik?
Where did you define your memcache session save handler?

comment:2 Changed 5 years ago by Sych

memcache session handler defined in php.ini

when ini_set commented piwik worked fine

comment:3 Changed 5 years ago by vipsoft (robocoder)

  • Milestone set to 1 - Piwik 0.4.1

Interesting.

comment:4 Changed 5 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

(In [1226]) fixes #805 - don't override memcached session handler

comment:5 Changed 5 years ago by vipsoft (robocoder)

Ref'd the wrong ticket:

(In [1227]) - only set session handler if 'user'; all the other handlers are either built-in or through libraries/extensions; see list of supported session handlers #806

Note: See TracTickets for help on using tickets.