Skip to content

Instantly share code, notes, and snippets.

/session.php Secret

Created September 27, 2016 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c5ac29462c8c876498ba22a466395bd1 to your computer and use it in GitHub Desktop.
Save anonymous/c5ac29462c8c876498ba22a466395bd1 to your computer and use it in GitHub Desktop.
<?php
Configure::write('Session', [
'defaults' => 'php',
'ini' => [
// Invalidate the cookie after 30 minutes without visiting
// any page on the site.
'session.cookie_lifetime' => 1800
]
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment