PHP5'ta, kod: session_register("");
benim kod:
function login() {
// Don't show the error message if no data has been submitted.
$this->set('error', false);
// Production mode. No output. For AJAX
Configure::write('debug', 0);
// Does not render the view
// Others method : $this->render(false, false);
$this->autoRender = false;
// The most important : set : debug = 0 and register session
session_register("");
$this->Session->write('test',"test1");
echo $this->Session->read('test');
}
return ;
}