Dear all, we have an Angular application with an iframe to encapsulate a grafana web app (deployed in a docker istances with a custom config file grafana.ini).
When we enter in the grafana section inside the Angular app, a login post request is executed with username and password to authenticate on grafana. In order to avoid issues with the authentication, when we leave the grafana section, we execute a logout get request to grafana (to the endpoint /logout).
We have observed that the grafana cookie session (called grafana_session) is deleted from the angular app after the logout while in the grafana web app the cookie is still set (the value of the cookie is the same of the deleted cookie of the angular app).
What we desired is delete all grafana cookies from all client sessions after the logout request.
How can we manage this behaviour?
It is not clear what you are doing. But:
2.) Iframe is isolation on the browser level, so I would be suprised if one iframed Grafana will be able to broadcast anything to another iframed Grafana in another tab. Iframes are really bad design and they introduce this kind of (also security) problems.
Hi @jangaraj thanks a lot for your help. Have you any suggestion about set session cookie on grafana? Like this link: Grafana UI Session cookie contains "max-age" attribute. Any way to remove it through configuration?
Ok nice. Thanks for your help. Another question, can we use session cookie instead persistent cookie in Grafana?
- the best option is to try
yes but how shoud we modify the grafana.ini file? Because we find only persistent cookie lifetime