Replies: 2 comments 4 replies
-
This is basically a user-agent specific. Some will store the info in files, others in an internal database etc. I reckon we would have some kind of API for transferring cookies and local storage (LS) between the UA en the engine. The engine should not decide on how a UA stores the data, but should be able to use it. We could either transfer all the local data from the UA to the engine (for all sites?), or just send local storage of the given domain. It could also be a pull action from the engine:
Here, the UA would retrieve the cookies and LS from a text-file / database / wherever, and returns it to the engine, which in turn can use it. I'm sure there are better ways though |
Beta Was this translation helpful? Give feedback.
-
Storing text files would be really inefficient. Ideally it would use something like sqlite or rocksdb as a backend. |
Beta Was this translation helpful? Give feedback.
-
I know this topic is likely far away from implementation but I was reading the repo's wiki about the topic of cookies/local storage and whether to handle that in the client or the engine.
I did some quick research and seems like cookies/LS can be stored as small text files (maybe in some
.cookies
folder wherever the browser install directory is.)If the direction is to possibly have (or at least allow) multiple UI clients to interact with the engine, then I think it makes the most sense to handle cookie/LS in the engine that way we wouldn't have to implement it in every UI client. I don't know the exact details about how to handle cookies/LS with tabs yet but that's far away at this point.
These are just my thoughts
Beta Was this translation helpful? Give feedback.
All reactions