Starts a new session based on the specified contextual initialization data, which can be used by the underlying
implementation to determine how exactly to create the internal Session instance.
<p/>
This method is mainly used in framework development, as the implementation will often relay the argument
to an underlying {@link SessionFactory} which could use the context to construct the internal Session
instance in a specific manner. This allows pluggable {@link hunt.shiro.session.Session Session} creation
logic by simply injecting a {@code SessionFactory} into the {@code SessionManager} instance.
@param context the contextual initialization data that can be used by the implementation or underlying
{@link SessionFactory} when instantiating the internal {@code Session} instance.
@return the newly created session.
@see SessionFactory#createSession(SessionContext)
Starts a new session based on the specified contextual initialization data, which can be used by the underlying implementation to determine how exactly to create the internal Session instance. <p/> This method is mainly used in framework development, as the implementation will often relay the argument to an underlying {@link SessionFactory} which could use the context to construct the internal Session instance in a specific manner. This allows pluggable {@link hunt.shiro.session.Session Session} creation logic by simply injecting a {@code SessionFactory} into the {@code SessionManager} instance.
@param context the contextual initialization data that can be used by the implementation or underlying {@link SessionFactory} when instantiating the internal {@code Session} instance. @return the newly created session. @see SessionFactory#createSession(SessionContext)