I am managing the Piwigo installation of a friend, and I noticed a rather critical issue with the account system:
When my friend currently logs into their account on their computer, whenever I visit the gallery the system thinks I am logged in as that person as well, despite not even knowing their credentials.
This has been reproduced several times with them logging in and out and me essentially having the same login state in my own completely unrelated browser, coming from a completely different IP/ISP.
Setup is NGINX on Debian. I don't know if the issue is new in 12.1 or has beeen present before already.
Greetings,
I am managing the Piwigo installation of a friend, and I noticed a rather critical issue with the account system:
When my friend currently logs into their account on their computer, whenever I visit the gallery the system thinks *I* am logged in as that person as well, despite not even knowing their credentials.
This has been reproduced several times with them logging in and out and me essentially having the same login state in my own completely unrelated browser, coming from a completely different IP/ISP.
Setup is NGINX on Debian. I don't know if the issue is new in 12.1 or has beeen present before already.
<!-- github-sync-id:1084059290 -->
Update:
I found the reason, and it needs to be pointed out in Documentation when hosting using NGINX:
When Using NGINX + NNGINX Unit for PHP, people do need to make SURE to disable the 'proxy' caching policy between NGINX and NGINX Unit, in order to avoid false account sharing.
Example phpfile.conf entry:
if ($request_uri ~* "\/gallery\/"){
set $no_cache 1;
}
In this case Piwigo is hosted in the /gallery/ directory.
Update:
I found the reason, and it needs to be pointed out in Documentation when hosting using NGINX:
When Using NGINX + NNGINX Unit for PHP, people do need to make SURE to disable the 'proxy' caching policy between NGINX and NGINX Unit, in order to avoid false account sharing.
Example phpfile.conf entry:
if ($request_uri ~* "\/gallery\/"){
set $no_cache 1;
}
In this case Piwigo is hosted in the /gallery/ directory.
<!-- github-comment-id:997365649 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Greetings,
I am managing the Piwigo installation of a friend, and I noticed a rather critical issue with the account system:
When my friend currently logs into their account on their computer, whenever I visit the gallery the system thinks I am logged in as that person as well, despite not even knowing their credentials.
This has been reproduced several times with them logging in and out and me essentially having the same login state in my own completely unrelated browser, coming from a completely different IP/ISP.
Setup is NGINX on Debian. I don't know if the issue is new in 12.1 or has beeen present before already.
Update:
I found the reason, and it needs to be pointed out in Documentation when hosting using NGINX:
When Using NGINX + NNGINX Unit for PHP, people do need to make SURE to disable the 'proxy' caching policy between NGINX and NGINX Unit, in order to avoid false account sharing.
Example phpfile.conf entry:
In this case Piwigo is hosted in the /gallery/ directory.