Forums / General / Problem with sessions | ezsession.php | session_start()
Maxim Kopytov
Sunday 08 August 2010 9:43:08 am
Hi!
After publishing site on hosting server i see this errors.
Warning: PHP: E_WARNING Aug 08 2010 16:35:57 session_module_name() [<a href='function.session-module-name'>function.session-module-name</a>]: A session is active. You cannot change the session module's ini settings at this time in /home/site/promo.site.com/docs/lib/ezutils/classes/ezsession.php on line 437
Notice: PHP: E_NOTICE Aug 08 2010 16:35:57A session had already been started - ignoring session_start() in /home/site/promo.site.com/docs/lib/ezutils/classes/ezsession.php on line 520
And I can't login to the admin interface. Automaticly used anonymouse user.
Where is the probem?
I use eZ Publish 4.3.0
______________ I love eZ Publish
Robin Muilwijk
Sunday 08 August 2010 11:37:57 am
Hi Maxim,
Can you have a look at the following topic? http://share.ez.no/forums/developer/ez-publish-4-performance-varnish/(offset)/20#comment48709
Regards Robin
Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation. LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk
Monday 09 August 2010 8:39:03 am
Tuesday 31 March 2009 6:39:45 pm
Gosh... I get it.
session was at auto-start in php.ini.....
My .htaccess file:
php_value session.auto_start 0
And I see this error
[ Aug 09 2010 15:16:07 ] [213.206.44.230] PHP: E_WARNING:Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
Monday 09 August 2010 11:35:37 am
Could you check the phpinfo for the session auto start? Check if both local and master value are set to "Off".
-- Robin
Monday 09 August 2010 10:09:27 pm
We found the problem!
In first line of index.php file, we found this code:
session_start();
I think that was somebody's malice.
Monday 09 August 2010 10:53:07 pm
Glad to see this is fixed, could you mark the topic as solved? See your original/first post, there is a checkbox.
Thanks Robin