Using Session class + fixing redirection bug.