Re: session problem
| From: | weetat | Date: | Wed, 21 Jun 2006 08:52:25 +0000 |
| Subject: | Re: session problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238458@lists.php.net to get a copy of this message | ||
yes i am
Thank for you help
Barry wrote:
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 : <?phpLet me take a guess: Your FORM action is action="http:// ...." Barrysession_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 :<?phpsession_start();echo print_r($_SESSION['LIST_OF_DATA']);?>