Expiring cookies with AngularJS? -
i need able store authentication information in cookie , set expiration date.
from have seen $cookie , $cookiestore doesn't support this.
are there alternatives or way possible on server side?
i hoping maybe there module exposes functionality?
thanks in advance
you create cookie standard javascript within angular ctrl using window.document.cookie.
https://developer.mozilla.org/en-us/docs/web/api/document.cookie
example documentation:
document.cookie = "somecookiename=true; expires=fri, 31 dec 9999 23:59:59 gmt; path=/";
Comments
Post a Comment