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 created my authentication component (instead of CakePHP's Auth) using CakePHP sessions. I've configured CakePHP to handle sessions using the database.
Here are the relevant configuration settings that I have in my config.php:
Configure::write('Session.save', 'database');
Configure::write('Session.timeout', '36');
Configure::write('Security.level', 'medium');
How do I extend the session cookie expiry date AND update the value in the "expires" column in the "sessions" table?