-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cookies are not persistent #2
Comments
try change there CookieManager.default.set(map,(res) => {
alert("Set cookie"+res);
}); to CookieManager.set(map,(res) => {
alert("Set cookie"+res);
}); |
I have done that before. |
HI, thanks for the reply, |
you mean callback(res) ? |
No. What I meant was, |
After the repair finished bug I'll release a new version |
@mallikarjunakp I made the following changes |
v0.2.0 Hello, same problem on Android:
I got following from getCookie (parsed):
Here is my code: https://gist.github.com/iegik/21633e999aa653b0f046cc31138cdc5b PS: I write my own mixed class from both react-native-cookies and react-native-cookiemanager Update:
Do You check these properties for empty value? |
Hi,
I have used the code as you explained.
Please check the issue that i am getting.
Here is my code,
var options = { name: 'username', value: 'abcdefg', domain: 'http://localhost:8081/', origin: 'http://localhost:8081/', path: '/', expiration: 'Thu, 18 Dec 2016 12:00:00 UTC', };
CookieManager.default.set(options,(res) => {
alert("Set cookie"+res);
});
I am executing this on click of a button for testing.
Then i am using the below code to get cookie
CookieManager.default.getAll((res) => {
alert(JSON.stringify(res));
});
But then the cookie is null. it alerts me this
{}
The text was updated successfully, but these errors were encountered: