saveSession

Function

DEPRECATED: Applications should manage storage/retrieval of serialized ArcGISContexts. Please see ArcGISContextManager.serialize(...) and ArcGISContextManager.deserialize(...) Serialize a UserSession into a browser's local storage

  • saveSession(clientId: string, session: UserSession, win: any) : void

Parameters

Parameter Type Default Notes
clientId Required string

oAuth Client Id

session Required UserSession

UserSession

win Optional any window

optional window (used for testing)

Returns

void

Function defined in common/src/utils/sessionLocalStorage.ts:57