Mam teraz projekt w Zend Framework i nie przetrzymuje mi sesji
$tripPlanS = new Zend_Session_Namespace('tripPlan'); //ajax adding and removing attraction ids $day = $this->getRequest()->getPost('day', 1); $itemId = $this->getRequest()->getPost('itemId'); if ($this->getRequest()->getPost('ev')=='add'){ $tripPlan[$day][] = $itemId; } $tripPlanS->tripPlan[$hotel_token] = $tripPlan; $_SESSION['tripPlan'] = $tripPlan;
Przy pierwszym listowaniu $_SESSION jest puste, ale na koniec skryptu zapisuje już tam dane. Jednak po ponownym odpaleniu skryptu $_SESSION znowu jest puste.
Gdzie może być problem?
Dodawałem session_start(), ale otrzymywałem komunikat, że już jest dodane