Refactor get session
Use process.env.PORT