Chrome에서 FF 나 IE가 아닌 이유를 알아 내려고합니다. 다음 스크립트에서 $ this-> referrer = $ _SESSION [ 'URL']; 처음으로/페이지가로드로 확인, 내가 페이지를 새로 경우는 호출하는 페이지의 주소로 다음
FF와 IE에 대한function startSession(){
global $database; //The database connection
session_name("Training");
session_start(); //Tell PHP to start the session
/* Determine if user is logged in */
$this->logged_in = $this->checkLogin();
/**
* Set guest value to users not logged in, and update
* active guests table accordingly.
*/
if(!$this->logged_in){
$this->username = $_SESSION['username'] = GUEST_NAME;
$this->userlevel = GUEST_LEVEL;
$database->addActiveGuest($_SERVER['REMOTE_ADDR'], $this->time);
}
/* Update users last active timestamp */
else{
$this->addLogCount($this->id);
$database->addActiveUser($this->username, $this->time);
}
/* Remove inactive visitors from database */
$database->removeInactiveUsers();
$database->removeInactiveGuests();
/* Set referrer page */
if(isset($_SESSION['URL'])){
$this->referrer = $_SESSION['URL'];
}else{
$this->referrer = "/";
}
/* Set current url */
$this->url = $_SESSION['URL'] = $_SERVER['PHP_SELF'];
}
, 그것은 첫째 /로 확인 /404.php을 해결합니다 새로 고침시 startSession(). 크롬에서 처리해야 할 부분이 있습니까? 크롬에서
$ 세션 :
Session Object
(
[id] =>
[tracksid] =>
[username] => Guest
[userid] =>
[userlevel] => 0
[time] => 1297103371
[logged_in] =>
[userinfo] => Array
(
)
[url] => /Community/login.php
[referrer] => /404.php
[type] =>
[company] =>
[ip] =>
[badip] =>
)
$ 세션 파이어 폭스에서 :
Session Object
(
[id] =>
[tracksid] =>
[username] => Guest
[userid] =>
[userlevel] => 0
[time] => 1297096106
[logged_in] =>
[userinfo] => Array
(
)
[url] => /Community/login.php
[referrer] => /Community/login.php
[type] =>
[company] =>
[ip] =>
[badip] =>
)
브라우저는 세션과 아무 관련이 없습니다. 세션 ID 만 보유합니다. 문제가 한 번에 여러 요청 일 수 있습니까? –
Chrome에서 세션 쿠키를 포함하여 몇 가지 쿠키 문제가 발생했습니다. 문제가 해결되지는 않지만 세션 쿠키가 정확하게 –