session manager with local session state refactored to general controller
update comment
refactor redirection