SessionHandler

session should be declared out of the try-catch block