fixed redirect for session id