You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cookies.set method to set expiration for the cookie, using Date object.
Documentation (http://quasar-framework.org/api/js-cookies.html) states the following:
"Define lifetime of the cookie. Value can be a Number which will be interpreted as days from time of creation or a Date object. If omitted, the cookie becomes a session cookie."
Method handles only the Number scenario, when a Date object is passed it is ignored and cookie expires with session.
What steps did you take, to get the error?
import { Cookies } from 'quasar'
let expiryDate = new Date(); Cookies.set('bigsecret', 'foo', { expires: expiryDate });
The text was updated successfully, but these errors were encountered:
Software version
Quasar: 0.5.2
OS: Ubuntu 16.04
Node: 4.2.6
NPM: 3.5.2
Browsers: All
What did you get as the error?
No indication/error thrown.
What were you expecting?
Cookies.set method to set expiration for the cookie, using Date object.
Documentation (http://quasar-framework.org/api/js-cookies.html) states the following:
"Define lifetime of the cookie. Value can be a Number which will be interpreted as days from time of creation or a Date object. If omitted, the cookie becomes a session cookie."
Method handles only the Number scenario, when a Date object is passed it is ignored and cookie expires with session.
What steps did you take, to get the error?
import { Cookies } from 'quasar'
let expiryDate = new Date();
Cookies.set('bigsecret', 'foo', { expires: expiryDate });
The text was updated successfully, but these errors were encountered: