del
This commit is contained in:
parent
41681f1f18
commit
4fe995d57f
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user