www.webOShelp.net

Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

Home Resources API Reference Mojo.Model.Cookie.put(objectToStore, expirationDate)

Mojo.Model.Cookie.put(objectToStore, expirationDate)

Creates or updates the value of this cookie.

Argument Type Description
objectToStore Object Object to store in a cookie.  Must be encoded in JSON.
expirationDate Date Expiration date.  Will be deleted if set to the current time or earlier.  Optional.

Example usage:

  this.stageAssistant.cookie.put(        {
      featureIndexFeed: this.featureFeedListModel.value,
      featureFeedEnable: this.featureFeedToggleModel.value,
      feedUpdateInterval: this.feedIntervalModel.value,
      newsVersionString: newsVersionString,
      featureStoryInterval: featureStoryInterval
  });
 

0 Comments

    Add Comment


      • >:o
      • :-[
      • :'(
      • :-(
      • :-D
      • :-*
      • :-)
      • :P
      • :\
      • 8-)
      • ;-)