Code cleanup

Signed-off-by: Pedro Nunes <pgh.nunes@gmail.com>
Set session MaxInactiveInterval to 600 (10 minutes)

Signed-off-by: Pedro Nunes <pgh.nunes@gmail.com>