cookie-store
Reactive icon

Cookie Store

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 17 Dec (18 hours ago)
 by 
0.0
 (0 ratings)
cookie-store

Cookie Store

Documentation
1.0.0

Wraps the Cookie Store Web API that allows developers to easily manipulate cookies in the client side.

The following client actions are available:

  • Cookie_Set - Create & Update a single cookie with options
  • Cookie_Get - Get a single cookie by name
  • Cookie_GetAll - Get all cookies for the current context
  • Cookie_Delete - Delete a cookie by name
  • Cookies_Delete - Delete all cookies in the current context (concurrently)


Cookies use a native value of "Expires" (a Unix timestamp). To make this value easier to work in OutSystems, there's some utility functions available:

  • ExpiresInToUnix - Convert an OutSystems DateTime value to an Unix timestamp
  • UnixToDateTime - Convert an Unix timestamp to an OutSystems DateTime
  • ExpiresInToExpiresAt - Add seconds to the current date time to get an "ExpiresAt" value
  • ExpiresInToUnix - Add seconds to the current Unix timestamp to get a timestamp in the future


When reading a cookie, you can use the UnixToDateTime function to get a workable date in OutSystems. When setting a cookie, you should use the ExpiresInToUnix to set a validity (in seconds).