session management fixed complete