pgadmin4 icon indicating copy to clipboard operation
pgadmin4 copied to clipboard

hope to store session in PostgreSQL database

Open ghr111 opened this issue 1 year ago • 6 comments

Describe the solution you'd like

Dear Developer,

I use multiple nodes to run pgadmin4 in server mode, PostgreSQL as database, 'SESSION_DB_PATH' is defined in local path file. When user's request sends to other node, the request session missing causing relogin. So I hope to store session in PostgreSQL database instead of in local path file. In this situation multiple nodes will share session.

Thanks for your reply.

ghr111 avatar Jul 01 '24 12:07 ghr111

Can someone help me

ghr111 avatar Jul 10 '24 09:07 ghr111

Hi @ghr111, do multiple nodes mean different pgAdmin installations OR multiple users with the same pgAdmin server?

khushboovashi avatar Jul 12 '24 11:07 khushboovashi

Hi @ghr111, do multiple nodes mean different pgAdmin installations OR multiple users with the same pgAdmin server? @khushboovashi , Thanks for your reply, It's the former different pgAdmin installations on some machines and ngix is in the front.

ghr111 avatar Jul 15 '24 08:07 ghr111

Session storage is only part of the problem - the more important consideration is that the database connections cannot be shared between the nodes. It's unlikely there is any sane way to solve that problem.

dpage avatar Jul 15 '24 09:07 dpage

@dpage Thanks for your reply, I use external databases PostgreSQL which store pgAdmin4 configuration settings, the settings in the databases can be shared between the nodes. But the session and uploaded files (refer to issue #7651 https://github.com/pgadmin-org/pgadmin4/issues/7651) is stored in server local machine, so I want to store data in PostgreSQL database.

pgAadmin4 version: 6.21

ghr111 avatar Jul 15 '24 09:07 ghr111

Is there any plan to store the user sessions in the DB?

archef2000 avatar Dec 06 '24 19:12 archef2000