Skip to content

cookies are not persistent #2

Description

@mallikarjunakp

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 {}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions