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

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -