CookieTimeout

Summary

Sets the number of seconds that the session cookie lasts.

Usage

 

CookieTimeout=number

Description

This setting is set in the cookie used by the client browsers to store the session information. When the cookie times out it will be removed by the client browser. Note that the maximum session duration is the minimum of this setting and the SessionTimeout setting.

Examples

[Session]
# Number of seconds a session will last
# 3 days is standard
SessionTimeout=259200
# Number of seconds before a session is considered inactive/logged out
# 1 hour is standard
ActivityTimeout=3600
# Number of seconds a session cookie will last,
# 0 means until browser is closed
# Leaving the field empty means to use the default PHP settings
# (session.cookie_lifetime)
# Example for 6 minutes
CookieTimeout=360

With this configuration, HTTP cookies will expire in six minutes. If the site visitor is inactive for six minutes without closing his browser window, the cookie will expire and thus the user's session will be ended. If the user reloads the page later then a new session will be created. However, the previous session will not be removed from the database. It will become inactive in one hour and expired in three days.

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