Comments (3)
I think that depends on date when cookie expires. You can try something like this ipCookie(key, value, { expires: 1 });
from angular-cookie.
But then what will that do? Expire after 1 day?
Is it possible to set an expiration date in mins, or hours?
from angular-cookie.
In this line https://github.com/ivpusic/angular-cookie/blob/master/angular-cookie.js#L37 you are setting date when cookie will expire. Did you try set expires
to 0? If that does not work, try to play with that line, I think it won't be problem to solve that.
from angular-cookie.
Related Issues (20)
- Setting cookie with angular-cookie does not appear on $cookies HOT 1
- Path wildcard?
- Can you publish this to NPM? HOT 2
- cant delete or change cookie in Safari
- Using angular-cookie to share cookies across domains HOT 2
- can't set multiple key and values in a cookie
- Set secure option automatically based on $location.protocol()
- Change bower name HOT 1
- Can you add type definitions for this, for Typescript support? HOT 1
- can anybody tell me how can i use encode: function (value) { return value; } ? HOT 1
- Add this repo to npm too please HOT 3
- some key:values not saving on secure mode
- Cookie Value Modified when trying to read from Cookie
- ipcookie get failed on ie 11 HOT 6
- update version in package.json HOT 1
- Upgrade old dependencies
- Firefox not sets the cookie
- more then an year ago?
- Doesn't work with angular 1.3
- domain can't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-cookie.