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