Being logged out constantly (session/cookie trouble?)

Author Message

Sander van den Akker

Thursday 23 June 2011 5:29:45 am

I am having a hard time with the admin interface. I have to log in really often, despite using the 'remember me' checkbox and changing several settings which are currently as follows:

[Session]
ActivityTimeout=14400
RememberMeTimeout=2592000
SessionNameHandler=custom
SessionNamePrefix=eZSESSID

Can anyone give me some hints on how to debug issues like this? I have been scratching my head over this for quite some time now but I find it hard to solve ;)

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

Sander van den Akker

Thursday 23 June 2011 5:41:36 am

I expect the problem to lie elsewhere, since it happens on certain pages while using the interface. There almost can't be a session timeout, as I'm browsing. I just get redirected to the login page. What could this be?

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

Nicolas Pastorino

Thursday 23 June 2011 6:54:42 am

Hi Sander, 

What version of eZ Publish are you using ? Asking this to find out if the session handler in use is the PHP-based one. What can happen is that php-based sessions can not be opened anymore due to a full disk. Not very likely, but worth checking.

Other check that could be useful : do you get the session cookie after logging-in, and do you see your user, from the back-office, as having an active session (Setup > Sessions) ?

Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Sander van den Akker

Thursday 23 June 2011 8:15:59 am

Thanks for the info. The site is on 4.4, server is running php 5.2.9, and I do receive the eZSESSID cookie. The setup > sessions page however returns "

Your current session handler does not support session administration."

Weirdness!

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

Sander van den Akker

Thursday 23 June 2011 8:26:28 am

I see 4.4 requires PHP 5.2.14. Might that be it?

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

Nicolas Pastorino

Thursday 23 June 2011 8:38:44 am

Hi Sander, 

The php-based session handler was introduced as the default in Fuji - 4.4. Given the message you get ("Your current session handler.." ), file-based session management is in use. Scanning the PHP changelogs from 5.2.10 to 5.2.14, i stumble upon the following interesting stuff : 

  • "Fixed segfault on invalid session.save_path."
  • "Added protection for $_SESSION from interrupt corruption and improved "session.save_path" check"

I would definitely give the PHP upgrade a try, if i were you.

Cheers,

PS : check session.save_path in php.ini, and make sure it is storing sessions in a place where there is enough disk-space or write rights. Cheers.

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

André R.

Saturday 25 June 2011 2:02:48 am

5.2.9 also have a array sorting bug that affects eZ Publish, so unless your distro has patched it it is the worst possible version :)

As for the issue I can't see anything related being fixed so this might be file system / php related.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:20:59
Script start
Timing: Jan 18 2025 02:20:59
Module start 'layout'
Timing: Jan 18 2025 02:20:59
Module start 'content'
Timing: Jan 18 2025 02:21:00
Module end 'content'
Timing: Jan 18 2025 02:21:00
Script end

Main resources:

Total runtime0.7260 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.2969152.6563
Module start 'layout' 0.00470.0029 741.953139.5156
Module start 'content' 0.00760.7166 781.4688649.7031
Module end 'content' 0.72430.0016 1,431.171920.1094
Script end 0.7259  1,451.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4625160.0002
Check MTime0.00150.2068160.0001
Mysql Total
Database connection0.00060.078910.0006
Mysqli_queries0.652789.9128730.0089
Looping result0.00080.1116710.0000
Template Total0.700196.420.3500
Template load0.00220.299120.0011
Template processing0.697896.116320.3489
Template load and register function0.00010.016310.0001
states
state_id_array0.00100.134010.0010
state_identifier_array0.00140.198920.0007
Override
Cache load0.00200.2714450.0000
Sytem overhead
Fetch class attribute can translate value0.00060.080030.0002
Fetch class attribute name0.00100.1383100.0001
XML
Image XML parsing0.00160.214430.0005
class_abstraction
Instantiating content class attribute0.00000.0046140.0000
General
dbfile0.00110.1529300.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/header.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/header.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
1content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 34
 Number of unique templates used: 10

Time used to render debug report: 0.0001 secs