This object is in archive! 

System should remove sessions..

Archived Chris B. 10 years ago

It seems like there should be a built in feature to remove old sessions found here,


/usr/application/sessions


We didn't really even run the system very long, but there were over 100K session files filling up the directory.

Replies (3)

photo
1

Hello Chris,

User sessions are created each time new user enters community. So you should have 100k visitors in community to have such number of files.

If we are to clear sessions, then all logged users will be automatically loggout out.

You need to redefine store location of sessions in php.ini if you'd like php handle old session files. More details could be found in PHP Manual

photo
1

Thanks for the reply but the session files stay even after the users logout and they just accumulate over time. We took down USR, but there was still a full directory of files.. Most users hosting the system may not know that these stay. Although the files are small, they can take space if they are never deleted from the server.

photo
1

Chris,

As I've mentioned in previous comment, you better don't rely on internal sessions storage and redefine it with build-in php setting. This way, you'll have proven way of storing all sessions and for server to delete them when it requires. PHP will handle it

Replies have been locked on this page!