Opened 11 years ago

Closed 11 years ago

#1242 closed defect (worksforme)

php-xinha.php - xinha_read_passed_data() - loosing session variables

Reported by: guest Owned by: gogo
Priority: normal Milestone: 0.96
Component: Xinha Core Version: trunk
Severity: normal Keywords:
Cc:

Description

I'm using Firefox:

I'm trying to configure Extended File manager (ImageManager?) to use a custom image dir.

The implementation is with the drupal HTMLArea module (now uses xinha)

Looking at the code. The $_SESSION variables, and $REQUEST variables are set correctly on the page using xinha, but when opening the tool (EFM) the popup has lost all of the session variables. looking at the function:

if(isset($_REQUEST['backend_data']) && is_array($_REQUEST['backend_data']))
   {
     
     $bk = $_REQUEST['backend_data'];
     
     session_name($bk['session_name']);
     
     @session_start();
     var_dump($_SESSION);
     if(!isset($_SESSION[$bk['key_location']])) {
        ...

The session dump is an empty array. Looking at the cookie info for the pop-up page (where this output is displayed) the session cookie is set, so where are the variables??

There is a problem with this in IE
http://classicasp.aspfaq.com/general/how-do-i-manage-a-session-across-multiple-windows.html

But I'm using Firefox. I have a feeling I'm missing something

Change History (1)

comment:1 Changed 11 years ago by gogo

  • Resolution set to worksforme
  • Status changed from new to closed

Are you somehow starting the session too early and thus utilising a different session name? In your code snippet above, remove the error silencer from session_start() and you may see the problem.

Note: See TracTickets for help on using tickets.