[Piwik-trac] [Piwik] #246: session_start() called even if session already started

Piwik trac at piwik.org
Fri Jun 6 11:12:03 CEST 2008


#246: session_start() called even if session already started
--------------------+-------------------------------------------------------
 Reporter:  meglio  |        Type:  Bug     
   Status:  new     |    Priority:  critical
Milestone:          |   Component:  Core    
  Version:          |    Keywords:  session 
--------------------+-------------------------------------------------------
 session_start() called even if session already started in index.php.

 I have fixed it temporary with the following code:

 {{{
 if (session_id() == '')
         session_start();
 }}}

 If you start session in any case - this causes problem for users which are
 calling piwik from within their PHP with session already started.

-- 
Ticket URL: <http://dev.piwik.org/trac/ticket/246>
Piwik <http://piwik.org>
Piwik, open source web analytics software


More information about the Piwik-trac mailing list