destoon users always log out automatically when using 360 browser. After checking, it was found that it was caused by the loss of cookies, but the reasons for the loss are different!
The solutions to this are also different. Tests have found that modifying the settings of the 360 browser or the compatibility view settings of IE are ineffective.
The proven and feasible solutions are as follows:
Add session to save user’s auth information
1. Add the following code in line 364 of /module/member/member.class.php:
if(!is_object($session)) $session = new dsession(); $_SESSION['auth'] = $auth; $_SESSION['username'] = $user['username'];
2. Add the following code in the logout method of /module/member/member.class.php:
session_destroy();
The modified logout code is as follows:
function logout() { set_cookie('auth', ''); session_destroy(); return true; }
3. Find common.inc.php in the root directory:
$destoon_auth = get_cookie('auth');
with the following code:
$destoon_auth=''; if(get_cookie('auth')){ $destoon_auth = get_cookie('auth'); }else{ $destoon_auth = isset($_SESSION['auth'])?$_SESSION['auth']:''; }
Problem solved after completion!