-
-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] Allow to specify session cookie name #273
Comments
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid. |
Looking at the code, in principle you should just be able to pass Edit: PR for reference qbittorrent/qBittorrent#18384 |
Thank you for the quick answer! Unfortunately I tried and it isn't working. No change in behavior. |
Re-reading the comments on that PR it doesn't look like they ever added the CLI or ENV option for setting it, only directly in the config file. |
It also doesn't look like it's actually possible to set it from the WebUI. I'm not sure this actually works at all based on my tests. |
Yes, I tried adding: No result. The cookie is always named "SID", I think. |
Comment on a related issue is
|
So, completely inexplicably, and in a break from every other setting, it needs to go outside all of the preferences sections of the conf file. i.e. right at the top like: WebAPI\SessionCookieName=steve
[Application]
FileLogger\Age=1
FileLogger\AgeType=1
FileLogger\Backup=true
FileLogger\DeleteOld=true
FileLogger\Enabled=true
FileLogger\MaxSizeBytes=66560
FileLogger\Path=/config/qBittorrent/logs
... |
Believe it or not, I was just commenting on that. I reviewed the code and I also noticed that this method is getting the setting with a different pattern. For example "Preferences/WebUI/SessionTimeout", but this one is just "WebAPI/SessionCookieName". Thank you so much for the help! |
Just a quick note: When I stopped the container it rearranged the config and it makes sense.
|
I'm not sure that makes any more sense compared to the existing settings, but thanks for letting us know. |
Is this a new feature request?
Wanted change
In release 4.6.0 qbittorrent introduced this feature where you should be able to specify the name of the session cookie. It is mentioned here "WEBUI: WebAPI: Allow to specify session cookie name (glassez)". I'm not sure if this can be used in the current docker state, or I just can't figure it out.
Reason for change
I'm running two instances of the docker-qbittorrent. They have separate ports, appdata directories, etc. Everything is fine, but they both use the same cookie in my browser. So if you have an open tab with one of the instances and you log into the other one, the first one is logged out. If you open the second one in "incognito tab" (or another browser) that is not happening. I believe this feature will resolve the issue. I appreciate this is not big deal, but still I think it's useful.
Proposed code change
No response
The text was updated successfully, but these errors were encountered: