Cookies based sessions in Panel

Hello everyone.

Just wondering is there a cookies based session ready solution for the Panel app which creates session for the cookie, save/load session context etc.

pn.state session is good, but this keeps the session data as far as websocket is open, but I need to store a session context for longer time using cookies.

I have idea how to implement it, but wondering may be there’s already a solution for it or I missed it in the Panel Doc.

Thanks.

Have you seen this?
https://panel.holoviz.org/how_to/state/request.html#cookies

Yes, and this can be a part of custom solution to assign cookies via the bokeh server and then store the session data using the cookie assign. But what I’m asking is more high level ready solution to store session data based on the cookie. I really want to check now what does exist before jumping into making a custom thing. But may be this is something I should really check in Bokeh server instead of Panel docs