Reference library

Article number: 304337

User store

The UserStore web-service allows user-specific data-blocks/variables to be stored and retrieved for a given user. The web service is accessed from the following URL:

http://helpcms.sitekit.net/admin/ws/SecureUserStore.asmx

Methods are as shown below

  • DeleteAllStoredValues
    This function sets the contents of value stored for a user on a site.
  • DeleteStoredValue
    This function sets the contents of value stored for a user on a site.
  • GetListOfStoredValues
    This function returns a list of the value stored for a user on a site.
  • GetStoredValue
    This function returns the contents of a value stored for a user on a site.
  • SetStoredValue
    This function sets the contents of value stored for a user on a site.

The three main functions are:

  • GetStoredValue (sitekit_userID, sitekit_siteID, storename)
  • SetStoredValue (sitekit_userID, sitekit_siteID, storename, storevalue)
  • GetListOfStoredValues (sitekit_userID, sitekit_siteID)

The functions can be used to store any information for a user and then retrieve it by name, e.g.

SetStoredValue('fredbloggs',9876,'favouritecolour','green') - will save the user's favourite colour in a data-store called 'favouritecolour'.

To retrieve the value use:

GetStoredValue('fredbloggs',9876,'favouritecolour')

Alternatively the following magic word could be used.

:::secureuserstore-favouritecolour::: which would return green

These web-services are intended to be used, in conjunction with XML Data Islands, to allow any user data from form fields to be stored and then retrieved to re-populate hidden form fields.

 

 

Related questions