CakePHP1.2 携帯 端末ID(UID)取得時 Docomoのセッションがきれる

CakePHP1.2にて携帯端末ID(UID)を取得するときにDocomoのセッションがきれちゃうんです!!
これはちょっとこまりましたね。。。

問題は、uidが来るとuseragentが変わってしまうためはじかれてしまうみたい

/cake/libs/session.php

read('Config')) {
			if ((Configure::read('Session.checkAgent') === false || $this->_userAgent == $this->read('Config.userAgent')) && $this->time <= $this->read('Config.time')) {
				if ($this->error === false) {
					$this->valid = true;
				}
			} else {
				$this->valid = false;
				$this->__setError(1, 'Session Highjacking Attempted !!!');
			}
		}
		return $this->valid;
	}
?>

ここのuserAgent見てるところではじかれてしまうみたいなんです

なのでMobileとPCの切り替えをしている部分で(これ自分でつくったとこなんでみなさんのやり方でどうぞ)


エージェントチェックきっちゃいましたww
大丈夫なのだろうか。。。。

Follow me!