GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Issue with sessions in pgAdmin4 · Issue #6090 · pgadmin-org/pgadmin4

Issue with sessions in pgAdmin4 #6090

New issue
Copy link
New issue
Copy link
Closed
Closed
Issue with sessions in pgAdmin4#6090
Copy link
Labels
Bug

Description

@nikhil-mohite
nikhil-mohite
opened on Apr 5, 2023
Issue body actions

Please note that security bugs or issues should be reported to [email protected].

Describe the bug
An issue with pgAdmin4 sessions

To Reproduce

Steps to reproduce the behavior:

  1. Install pgAdmin 4 (v6.21) using wheel package (considering all fresh pgAdmin setup)
  2. Create a user ([email protected]) and login
  3. Add new Servers (using import/export servers) and connect with the server
  4. Keep open the browser windows with the [email protected] user logged in
  5. Now uninstall pgAdmin and remove the DB file as well
  6. Now Install pgAdmin 4 v7.0
  7. Create a user ([email protected]) and log in
  8. Add new Servers (using import/export servers)
  9. check the server which was connected with V6.21 is showing as connected even though we have not connected it with the latest installation.

Expected behavior

It should not use the older session with the new login
(Note: use fs_uniquifier from the User model to create a new session)

Desktop (please complete the following information):

  • OS: OSX Ventura
  • Version: Candidate build V7.0
  • Mode: Server
  • Browser (if running in server mode): chrome
  • Package type: Python

Activity

Next
  1. nikhil-mohite
    added
    Bug
    on Apr 5, 2023
  2. akshay-joshi
    added this to Not Refinedand Ready for Sprint Bugs and removed this from Not Refinedon Apr 6, 2023
  3. akshay-joshi
    added
    EDB Sprint 140
    on Apr 6, 2023
  4. akshay-joshi
    added this to Current Sprint (213) and removed this from Ready for Sprint Bugson Apr 12, 2023
  5. akshay-joshi
    moved this to 🆕 New in Current Sprint (213)on Apr 12, 2023
  6. akshay-joshi
    added
    EDB Sprint 141
    and removed
    EDB Sprint 140
    on Apr 26, 2023
  7. akshay-joshi
    assigned
    nikhil-mohite
    on Apr 26, 2023
  8. akshay-joshi
    added
    EDB Sprint 142
    and removed
    EDB Sprint 141
    on May 9, 2023
  9. nikhil-mohite
    moved this from 🆕 New to 🏗 In Progress in Current Sprint (213)on May 19, 2023
  10. akshay-joshi
    removed
    EDB Sprint 142
    on May 24, 2023
  11. 1 remaining item

  12. akshay-joshi
    added
    EDB Sprint 144
    and removed
    EDB Sprint 143
    on Jun 7, 2023
  13. nikhil-mohite
    moved this from 🏗 In Progress to 🆕 New in Current Sprint (213)on Jun 20, 2023
  14. akshay-joshi
    removed
    EDB Sprint 144
    on Jun 21, 2023
  15. akshay-joshi
    added this to Ready for Sprint Bugs and removed this from Current Sprint (213)on Jun 21, 2023
  16. adityatoshniwal
    unassigned
    nikhil-mohite
    on Dec 15, 2025
  17. dpage commented on Aug 19, 2026

    @dpage
    dpage
    on Aug 19, 2026
    Contributor
    More actions

    Root cause traced and PR up: #10312. The cached ServerManager for a session is looked up by session id + numeric server id only, so if the configuration database is reset/restored without restarting pgAdmin, a newly created server can inherit a deleted one's id and get served its stale, still-cached connection manager. The fix compares the manager against the current server row's identifying fields before reusing it.

  18. dpage
    added a commit that references this issue on Sep 23, 2026

    fix: bind cached server managers to the pgAdmin user

    a8a7297
  19. dpage
    added 4 commits that reference this issue on Oct 12, 2026

    fix: bind cached server managers to the pgAdmin user

    f9fccde

    fix: bind cached server managers to the pgAdmin user

    14d4831

    Refresh a stale ServerManager when a server id is reused. pgadmin-org…

    6167963

    Refresh a stale ServerManager when a server id is reused. #6090 (#10312)

    3d5661e
  20. dpage commented on Oct 13, 2026

    @dpage
    dpage
    on Oct 13, 2026
    Contributor
    More actions

    Fixed by #10312 (3d5661e).

  21. dpage
    closed this as completedon Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug

    Type

    No type

    Projects

    • Ready for Sprint Bugs
      Status
      Done
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.