Updated session management of the php scripts (now it's based on the idle time
of a user and not a fixed point in the future).