Retrieves the session ID from the given context.
The context object.
The session ID if it exists, otherwise undefined.
Retrieves the session ID from the given context.