The Open method opens the specified storage
container and requests an access token for the application. This
method that must be called prior to accessing any
stored objects.
The application ID is a string that uniquely
identifies the application requesting the access and must have been
previously registered with the server by calling the
RegisterId method. If the AppId
parameter is omitted or an empty string, the a default
internal ID will be used which is allocated for each storage account. You can use
this default ID if you wish to share data between all of the
applications you create.
The storage type specifies the type of container that objects will
be stored in. In most cases, we recommend using
webStorageGlobal
which means that stored objects will be accessible to all users of
your application. However, you can limit access to the stored objects
based on the local domain, local machine ID or the current user SID.
If you specify anything other than global storage, objects can be
orphaned if the system configuration changes. For example, if
webStorageMachine is specified, the objects that are stored there can only
be accessed from that computer system. If the system is reconfigured (for
example, the boot volume formatted and Windows is reinstalled) the
unique identifier for that system will change and the previous objects
that were stored by your application wil no longer be accessible.
It is advisable is to store critical application data and
configuration information in the webStoragebGlobal
container and use other
non-global storage containers for configuration information that is
unique to that system and/or user which is not critical and can be
easily recreated.