Menu

#2488 (ok 2.11.3) PMA behavior with session.auto_start enabled

2.10.3
fixed
Interface (555)
1
2013-06-11
2007-07-30
ET
No

I use PMA on several servers where I'm constantly doing development, and I have been annoyed for some time at how PMA erases $_SESSION variables set by other apps on the webserver. Why does PMA do this? Is there a workaround or configuration change that would allow PMA to coexist with other apps that use the session variables.

FYI, session.auto_start is enabled.

Discussion

  • ET

    ET - 2007-07-30

    Logged In: YES
    user_id=392727
    Originator: YES

    Oops, that last sentence should end in a '?'

     
  • Marc Delisle

    Marc Delisle - 2007-07-31
    • assigned_to: nobody --> lem9
    • summary: PMA erases session variables --> PMA behavior with session.auto_start enabled
     
  • ET

    ET - 2007-08-01

    Logged In: YES
    user_id=392727
    Originator: YES

    Okay, I see where the session is getting reset. In order to configure PMA's session stuff as you need, auto_start gets in the way. However, I think there's a much cleaner method to solving the problem - simply close the automatic session, rather than destroying it.

    --- session.inc.php Line 32 (PMA version 2.10.3) ---

    } elseif (ini_get('session.auto_start') == true && session_name() != 'phpMyAdmin') {
    session_write_close();
    }

    ----

    Note that I have removed a bunch of code that destroys the existing session. Instead, this code simply closes it, allowing PMA to set up a new session and start it later. PHP does not keep the two sessions separate (named "PHPSESSID" and "phpMyAdmin"), but it means that PMA can have the session built as it desires.

     
  • Marc Delisle

    Marc Delisle - 2007-08-02
    • assigned_to: lem9 --> nobody
     
  • Marc Delisle

    Marc Delisle - 2007-11-25
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2007-11-25

    Logged In: YES
    user_id=210714
    Originator: NO

    I merged your suggested code, thanks.

     
  • Marc Delisle

    Marc Delisle - 2007-11-25
    • priority: 5 --> 1
    • summary: PMA behavior with session.auto_start enabled --> (ok 2.11.3) PMA behavior with session.auto_start enabled
    • status: open --> open-fixed
     
  • Marc Delisle

    Marc Delisle - 2007-12-08
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed
     
Auth0 Logo