Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
javascript
javascript
pui.setCookie("user", currentUser, 30);

The following code saves a cookie that will expire in 1 hour:

Code Block
javascript
javascript

pui.setCookie("active", "1", 1/24);