my app made using python's eel library expects to retrieve data from cookies, the data is not critical and only contains a string of the last path the user worked with, so storing that in a database isn't ideal. However, cookies keeps resetting whenever the app starts.
I tried retrieving and storing the cookies like you normally would with js I use cookie.js from https://github.com/florian/cookie.js/
// store
function rememberLastPath(path){
cookie.set('lastPath', path);
}
// retrieve
function getLastPath(){
cookie.get('lastPath');
}
this works but when the app is restarted cookies are reset.
Ok, the snippet does not provide too much context other than you are trying to set and get a cookie called
lastPathto store the last workspace path.Some of the most common root causes for cookie persistence errors are:
cookie.set()? - An explicit expiration may be needed.cookie.set()return any errors, warnings or response that could provide clues?. If so, please share them.cookie.set()correctly?.