LoginSignup
0
1

More than 5 years have passed since last update.

CakePHPのセッション周りの設定

Last updated at Posted at 2016-09-10
AppController
function beforeFilter() {
    CakeSession::$requestCountdown = 1;
}
core.php
Configure::write('Session', array(
        'defaults' => 'php',
        'timeout' => 1440,
        'autoRegenerate' => true,
        'ini' => array(
            'session.cookie_lifetime' => 0,
            'session.gc_maxlifetime' => 86400,
            'session.gc_probability' => 1,
            'session.gc_divisor' => 100
        )
    ));

参考:http://hibiki30nen.blogspot.jp/2012/10/cakephp.html
参考:http://artisanedge.jp/blog/2012/11/21/223145.html

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1