Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ create()

virtual std::optional< SessionPrx > Glacier2::SessionManager::create ( std::string userId,
std::optional< SessionControlPrx > control,
const Ice::Current & current )
pure virtual

Creates a new session object.

Parameters
userIdThe user ID for the session.
controlA proxy to the session control object. This proxy is null when Glacier2.Server.Endpoints is not configured.
currentThe Current object of the incoming request.
Returns
A proxy to the newly created session. This proxy is never null.
Exceptions
Glacier2::CannotCreateSessionExceptionThrown when the session cannot be created.