This commit is contained in:
October 2014-03-26 14:23:16 +08:00
parent 41681f1f18
commit 4fe995d57f

View File

@ -1,19 +0,0 @@
<?php
class IFCookie{
const SESSIONSTR = 'SID';
public static function isNeedFix(){
$agent = $_SERVER['HTTP_USER_AGENT'];
if( strpos($agent,"iPhone") || strpos($agent,"Safari") ){
return true;
}
return false;
}
public static function fix(){
$pre = $_REQUEST[Url::SHORT_CLASS_TAG] == 'callback'?'state':self::SESSIONSTR;
if( isset( $_REQUEST[$pre] ) && $_REQUEST[$pre] && self::isNeedFix() ){
$sid = $_REQUEST[$pre];
session_id( $sid );
Url::$custom[self::SESSIONSTR] = $sid;
}
}
}