improve session management
The session management should be improved as it is now creating countless cookies in the session directoy:
>ls -l tmp/sessions/
total 0
-rw------- 1 www-data www-data 0 avril 30 10:16 sess_4tke3fvmaju79r6fc9b7mbn5g0
-rw------- 1 www-data www-data 0 avril 30 10:22 sess_8q59jqo3mdmuidqi37qlebtle6
-rw------- 1 www-data www-data 0 avril 30 10:22 sess_9oanm07e9lmktccnrfec72lpk7
-rw------- 1 www-data www-data 0 avril 30 10:20 sess_fuvuo0ilrsmjdkig6bvp6to7m6
-rw------- 1 www-data www-data 0 avril 30 10:23 sess_gf0v9jmln995fvjdmg68g1j435
-rw------- 1 www-data www-data 0 avril 30 10:23 sess_i6hdmgkpuljjbskpia5aheoev3
-rw------- 1 www-data www-data 0 avril 30 10:17 sess_sv53mm07ahvdal0cqos7dnrnl4
[...]
In the end, the filesystem is overloaded with cookie file, and it ends with no more inode available.