assign sessionID to a variable before closing session (cause sessionID gets cleared after that)