php - Cakephp's auth component logs me out too quickly. Anyway to change this? -


This is my first time on the stack overflow, though I often read "coding horror" anyway ...

I am working on a school / college project using KPHPP and I am using AuthComponent built to support user authentication (i.e. login etc).

My problem is that I am logged out after very short intervals. It does not even wait for me to complete a full session (ie close the browser). Sometimes 5 minutes, sometimes 10, and sometimes 15, but no more

The worst is when it logs me out when I call a method that requires a user to be logged in and before it is set to die properly.

I have searched a little bit but I can not find any answer. Any help would be appreciated!

I have not used kppp from version 1.1, so I'm not sure if this has changed , But if you want to see your DEBUG level, reduce the value assigned to DEBUG setting, CAKE_SESSION_TIMEOUT . In 1.1, then, all this is set in app / config / core.php .

Edit : It is now checked out, it has been rewritten, but the idea remains the same. Search in core.php : < / P>

  / ** * Time out of session (in seconds) * The actual price depends on the 'Security.level' setting. * / Configure :: Write ('session. Timeout', '120');  

And increase it so that the session takes longer time.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -