Made middleware to kill an inactive users session