Modify session cookie expiry and session timeout for a CakePHP session

后端 未结 2 995
一个人的身影
一个人的身影 2020-12-18 05:51

I\'m struggling to accomplish the following: Alter the user\'s session cookie expiry date based on the user\'s type.

I have a CakePHP web application wherein I have

2条回答
  •  情话喂你
    2020-12-18 06:22

    Find this: app/config/core.php

    Change this line to your desired value in minutes:
    Configure::write('Session.timeout', '120');

    (Since CakePHP 2.3.0 Security.level is no longer used.
    Changelog: http://cakephp.org/changelogs/2.3.0)

提交回复
热议问题