简体   繁体   中英

CakePHP 1.3 automatically log user out

I've set my Cakephp 1.3 debug level to 0 and whenever a user logs in, the user is automatically logged out after a few seconds.

However, this does not occur in debug level 1 or 2.

I've checked my security.level and session.timeout in core.php. I've also checked my server's php.ini and everything seems to be in order.

Anything that I could have missed out?

I finally got this fixed. I used the shell script to check for whites pace as well as manually eyeballing through my entire app. From models down to my views.

Cleaned up the entire code and made sure there wasn't any unnecessary whitespace or unused methods such as debug and it's working fine now. I guess clean coding does help in getting your app run smoothly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM