weetat schrieb:
Hi all,

 I have 2 php page , whenever i click the submit in 1st page , the
 $_SESSION['LIST_OF_DATA'] display nothing in the 2nd page.

If i do echo print_r($_SESSION['LIST_OF_DATA']) in first page , it displayed the data correctly.

Anybody have any ideas why php session behaviour is like that ?

Thanks - weetat

   below is the 1st page :

   <?php

       session_start();
       $arrayoffiles = listoffiles();

    $params = array(
             'mode'      => 'Jumping',
            'itemData'  => $arrayoffiles,
         'perPage' => 10,
                'delta' => 8,
             'append' => true,
             'clearIfVoid' => true,
             'useSessions' => true,
              'closeSession' => true,
       );

       $pager = & Pager::factory($params);
       $data  = $pager->getPageData();
       $links = $pager->getLinks();
       $_SESSION['LIST_OF_DATA'] = $data;

   ?>


   below is second page :

    <?php

        session_start();

        echo print_r($_SESSION['LIST_OF_DATA']);

    ?>

Let me take a guess:
Your FORM action is action="http:// ...."

Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to