Forums / Install & configuration / timed out / old sessions

timed out / old sessions

Author Message

Siniša Šehović

Friday 12 May 2006 12:52:26 am

Hi

How to use cronjob to remove timed out / old sessions?

Best regards,
S.

---
If at first you don't succeed, look in the trash for the instructions.

Łukasz Serwatka

Sunday 14 May 2006 11:31:14 pm

Hi Sinisa,

There is no cronjob script for this in eZ publish. You can control Session settings in the site.ini file. You can of course write small CLI script, basically you need to include
lib/ezutils/classes/ezsession.php then use eZSessionGarbageCollector().

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Norman Leutner

Monday 30 April 2007 1:53:05 am

This should be included within the standard cronjobs.

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Markus Bader

Monday 30 April 2007 5:26:03 am

We just published the cronjob extension as a contribution: http://ez.no/community/contribs/cronjobs/session_cleanup

coder pl

Monday 07 May 2007 3:47:41 am

Thanks for that source, ez Publish is really great code product, and those extra adds for it too.

http://www.coderpl.net

Piotrek Karaś

Wednesday 17 September 2008 8:54:51 pm

I wonder... why wouldn't eZ Publish clean the expired sessions by default (or why isn't there a cronjob like Norman's available out of the box)?

Cheers,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Ivo Lukac

Thursday 18 September 2008 12:54:25 am

There is an issue with PHP session cleanup on Debian/Ubuntu machines, otherwise cleanup is working fine without extra cronjob script.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Piotrek Karaś

Thursday 18 September 2008 1:24:56 am

Oh, I think I've heard of that somewhere, but... do you know where I could find some details?
Thanks,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Ivo Lukac

Thursday 18 September 2008 2:44:39 am

Try here: http://issues.ez.no/10431

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

eZ debug

Timing: Jan 18 2025 20:56:21
Script start
Timing: Jan 18 2025 20:56:21
Module start 'content'
Timing: Jan 18 2025 20:56:22
Module end 'content'
Timing: Jan 18 2025 20:56:23
Script end

Main resources:

Total runtime1.3823 sec
Peak memory usage4,096.0000 KB
Database Queries222

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.7266180.8359
Module start 'content' 0.00691.1581 768.5625814.8359
Module end 'content' 1.16490.2173 1,583.3984344.4609
Script end 1.3822  1,927.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00460.3315210.0002
Check MTime0.00140.1032210.0001
Mysql Total
Database connection0.00100.070210.0010
Mysqli_queries1.275392.26082220.0057
Looping result0.00290.21012200.0000
Template Total1.343797.220.6718
Template load0.00180.128920.0009
Template processing1.341997.077220.6709
Template load and register function0.00020.014010.0002
states
state_id_array0.00120.090310.0012
state_identifier_array0.00140.101720.0007
Override
Cache load0.00150.1105360.0000
Sytem overhead
Fetch class attribute can translate value0.00160.119180.0002
Fetch class attribute name0.00300.2187140.0002
XML
Image XML parsing0.00850.615680.0011
class_abstraction
Instantiating content class attribute0.00000.0020160.0000
General
dbfile0.01040.7549550.0002
String conversion0.00000.000530.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
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
9content/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
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 34
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs