Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
Node is saved as draft in My Content >> Draft
  • In cakephp Generate different session timeouts for admin and users

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1
    Comment on it

    I added this code in core.php file and it works for me.

    if(strripos($_SERVER['REQUEST_URI'],"admin")) {

    Configure::write('Session', array( 'defaults' => 'php', 'cookieTimeout' => 1440, 'timeout' => 30, 'checkAgent' => false, 'autoRegenerate' => true, )); } else {

    Configure::write('Session', array( 'defaults' => 'php', 'cookieTimeout' => 1440, 'timeout' => 20, 'checkAgent' => false, 'autoRegenerate' => true, )); }

    sessiontimeout

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: