I have a problem when I want to write a cookie. I am using jQuery cookies plugin. I am going to write and read cookies in my chrome content-script.
Cookies work fine, I can read and write cookies and everything is right until the chrome restarts. When chrome restarts, my cookie gets deleted and when I want to read the cookie, returns null.
I use $.cookies(“NAME”,”VALUE”); to write and $.cookies(“NAME”); to read.
There is no problem until the chrome is running. Even by closing and opening tabs, there’s no problem. But closing and opening chrome causes deleting my cookie. I’m pretty sure that my browser doesn’t remove the cookie.
So, How do I make them stable, guys? Thanks in adventure 🙂
It seems a session cookie. Did you set the expire time? With this plugin you can set it with: