Forums / Install & configuration / Being logged out constantly (session/cookie trouble?)

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

eZ debug

Timing: Jan 17 2025 23:39:39
Script start
Timing: Jan 17 2025 23:39:39
Module start 'content'
Timing: Jan 17 2025 23:39:39
Module end 'content'
Timing: Jan 17 2025 23:39:39
Script end

Main resources:

Total runtime0.1398 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.0781180.8125
Module start 'content' 0.00550.0046 769.8906106.6797
Module end 'content' 0.01010.1296 876.5703534.6406
Script end 0.1397  1,411.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00312.2418200.0002
Check MTime0.00120.8861200.0001
Mysql Total
Database connection0.00070.485210.0007
Mysqli_queries0.097169.47891410.0007
Looping result0.00151.06421390.0000
Template Total0.129292.410.1292
Template load0.00070.518110.0007
Template processing0.128491.908710.1284
Override
Cache load0.00050.364910.0005
Sytem overhead
Fetch class attribute can translate value0.00080.591810.0008
XML
Image XML parsing0.00020.138210.0002
General
dbfile0.00281.9951200.0001
String conversion0.00000.003430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs