semaphoreui / semaphore

Modern UI for Ansible, Terraform, OpenTofu, Bash, Pulumi.

Home Page:https://semaphoreui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Why relogin after browser close?

rioradio opened this issue · comments

Question

Why do I need to login again after closing the browser?

Semaphore UI v2.9.112 (Docker)

Related to

No response

As I understand it, when logging in, the server sets cookies without specifying the expiration date (Expires).
0016962221542254

The browser set cookie as session cookie.
0016975921585958

And session cookies are deleted when the browser is closed.
Therefore, you just need to add expiration dates to the cookies.

Hi @rioradio
yes, you are right. What the right session life expectancy? @tboerger what do you think?

Hi @fiftin
I think the best thing is to allow this value to be configured through the config. For myself, I would use a cookie expiration time of 1 year

I don't have strong feelings about that. For me it's fine to kill the session if the browser is closed.

Adding an option for that which will give an empty value like now and can be set to anything sounds reasonable.