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

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -