Session handling when using one host name and several ports

  • What Grafana version and what operating system are you using?
    v8.3.3 (30bb7a93ca) under Debian 11 and Ubuntu 20.04 LTS

  • What are you trying to achieve?
    Have two sessions in parallel to servers with same host name and different port numbers

  • How are you trying to achieve it?
    Two tabs in Firefox, rest see above

  • What happened?
    Tab 1: login to the first target localhost:3000, and select a panel.
    Tab 2: log into the second target localhost:3001. and select a panel.
    Tab 1: click for example on the panel search, that brings me to the login dialog

  • What did you expect to happen?
    That I can have both sessions in parallel

Background
We have a production and a test system.
In home office I access both systems through layers of firewalls and bastion hosts via

ssh -L 3000:localhost:3000 <ssh_alias_of_production_system>
ssh -L 3001:localhost:3000 <ssh_alias_of_test_system>

This way I’ve both Grafana servers easily accessibly via two localhost ports.
But the session management is apparently not able to handle that.