Skip to content

Commit

Permalink
Update ‘cookie_time_length’ docs and default value
Browse files Browse the repository at this point in the history
  • Loading branch information
vboctor committed Apr 16, 2017
1 parent ed97f95 commit 5a72e41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
6 changes: 4 additions & 2 deletions config_defaults_inc.php
Expand Up @@ -1109,10 +1109,12 @@
##########################

/**
* time for 'permanent' cookie to live in seconds (1 year)
* Time for long lived cookie to live in seconds. It is also used as the default for
* permanent logins if $g_allow_permanent_cookie is enabled and selected.
* @see $g_allow_permanent_cookie
* @global integer $g_cookie_time_length
*/
$g_cookie_time_length = 30000000;
$g_cookie_time_length = 60 * 60 * 24 * 365;

/**
* Allow users to opt for a 'permanent' cookie when logging in
Expand Down
7 changes: 4 additions & 3 deletions docbook/Admin_Guide/en-US/config/time.xml
Expand Up @@ -9,9 +9,10 @@
<varlistentry>
<term>$g_cookie_time_length</term>
<listitem>
<para>Time for 'permanent' cookie to live in seconds. This is what
is used when a user selects &quot;save login&quot;. Default is the equivalent
of 1 year (30000000).
<para>
Time for long lived cookie to live in seconds. It is also used as the default for
permanent logins if $g_allow_permanent_cookie is enabled and selected.
Default is 1 year.
</para>
</listitem>
</varlistentry>
Expand Down

0 comments on commit 5a72e41

Please sign in to comment.