G'dayCakePHP의 세션 값이 IE 브라우저에서 점점되지
나는 아래의 시나리오를 찾아서 할 필요는 걸 제안 CakePHP의 (2.2.0) project.Please의 IE 브라우저에서 세션 값을 받고 있지 않다 .
시나리오 - 1
// Here i am storing session value to SessionHold array as follows.
class TestController extends AppController {
public function index(){
$this->Session->write('SessionHold.unique_id', $uniqe_id);
$this->Session->write("SessionHold.zipcode", $this->request->data['Test']['zipcode']);
$this->Session->write("SessionHold.business", $this->request->data['Test']['business']);
}
}
시나리오 - 2
//이 컨트롤러에서 내가 세션 값
class SecondController extends AppController {
public function index(){
pr($this->Session->read()); // i am getting same session value in this action.
}
}
시나리오 얻고있다 -이 작업에서 3
- 을 나는 하나의 양식을 가지고있다. 나는 똑같은 sessio를 얻고있다. 양식을 게시하기 전에이 페이지에서 n 값을 입력하십시오.
- 일단 내가 양식을 게시하고 첫 번째 작업 줄에 동일한 세션 배열을 인쇄하지만 결과는 IE broswer에서 비어 있습니다. 모질라, 크롬과 사파리
클래스 FinalController 같은 다른 브라우저에서
그 작업 벌금
이 위의 문제에 대해 저를 도와주세요 AppController가 {
public function index(){
pr($this->Session->read()); // getting value before posting the form
**pr($this->Session->read()); exit;** // not getting the session value after posting the form
}
}을 확장합니다. 나는 사전 도움을 주셔서 감사합니다. 고맙습니다.
나는 당신의 문제를 감사드립니다. 나는 위의 방법으로 시도했지만 결과는 이전과 동일합니다. – Neil
우리는 하나의 PHP inbuilt 메소드 @ob_start()를 가지고 있는데 이것을 AppController.php 파일에서 사용합니다 .. – Pank