I just noticed that my sessions directory was full with hundred-thousands of session files

. It was even not possible to clean the directory with
rm *. Luckily midnight commander did the trick.
You might want to add a function to delete the session files after the session timed out