For one of my applications, I just changed the configuration to handle sessions in the database (Mysql, InnoDB). Here is what I added in the config file:
'session' => array ( 'class' => 'system.web.CDbHttpSession', 'connectionID' => 'db', 'sessionTableName' => 'session', ),
After the session table was created I added one more line:
'autoCreateSessionTable' => FALSE,
The problem I’m having now is that the data in the session table is not being deleted. There are still entries in there with an expiration date of 5 days ago. I was under the impression that the data should be deleted after 24 minutes. However, I couldn’t find any information on how and where the session data is deleted. What process does the actual automatic deleting? Why is the data still there?