This article mainly introduces the solution for destoon to forcibly deregister a user in the 360 browser. For more information, see
This article mainly introduces the solution for destoon to forcibly deregister a user in the 360 browser. For more information, see
Destoon users always exit automatically when using the 360 browser. After investigation, it is found that the cookie is lost, but the reasons for the loss are different!
The solution is also different. The test finds that the modification of the 360 browser settings or the IE Compatibility View settings are invalid.
The feasible solution after verification is as follows:
Add session to save user auth information
1. Add the following code to line 1 of/module/member. class. php:
If (! Is_object ($ session) $ session = new dsession (); $ _ SESSION ['auth'] = $ auth; $ _ SESSION ['username'] = $ user ['username'];
2. Add the following code to the/module/member. class. php logout method:
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 ');
Replace it with the following code:
$ Destoon_auth = ''; if (get_cookie ('auth ') {$ destoon_auth = get_cookie ('auth ');} else {$ destoon_auth = isset ($ _ SESSION ['auth'])? $ _ SESSION ['auth']: '';}
The problem can be solved after completion!
,