session - $_SESSION not saving values between php zend controllers in XAMPP -


folks,

i trust well.

i having issue $_session not passing values 1 controller in zend application. issue happening on local desktop environment. (windows 8 xampp version 5.6.8). when run code on unix server runs ok. code use set session variable in first controller:

$_session["child_code"] = $status["child_code"]; $_session["bridgit_child_code"] = $status["bridgit_child_code"]; $_session["sessionid"] = $status["session_id"]; $_session["bridgit_rec_id"] = $status["bridgit_rec_school_code"]; $_session["school_code"] = $status["reg_school_code"]; 

when run following code in first controller session data appears properly:

print_r($_session); 

this code using session data in second controller:

$this->aparameters["school_code"] = $_session["school_code"]; $this->aparameters["child_code"] = $_session["child_code"]; $this->aparameters["sessionid"] = $_session["sessionid"]; 

however none of data there verified printing out session data here:

print_r($_session); 

i have tried set session.auto_start 1 in php.ini if application crashes.

i believe issue how xampp set since code works on unix server.

does have suggestion on how fix this?

thanks in advance.

andy

according zend 1.12 manual sessions works this.

$mysession = new zend_session_namespace(); $mysession->child_code = $status["child_code"]; print_r($_session); 

at next controller.

$mysession = new zend_session_namespace(); print_r($_session); 

read documentation if using zend 2.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -