ezsession: different expiration time / anonym. user -> registered user

Author Message

Georg Franz

Wednesday 01 September 2004 6:14:28 am

Hi,

I've some high traffic sites and my ezsession table is growing and growing ...

The main problem: Search engine spiders are "poluting" the table because they are "anonymous users". Each page view creates a new entry in the ezession table. (250 MB at the moment at one site).

So my suggestion:
Take two session expiration times instead of one.
One for registered users who are logged in (this could be 5-10 days e.g.)
One for anomy. users (this could be one day)

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Georg Franz

Wednesday 01 September 2004 6:39:12 am

By the way, a tip for ez newbies: The session table isn't cleaned by default. So outdated sessions still remain in the ezsession table.

To remove outdated sessions use the
update/common/scripts/cleanup.php script

or put following line in one of your cronjobs:

eZSessionGarbageCollector();

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

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