Solution for destoon to forcibly deregister a user in the 360 browser

Source: Internet
Author: User
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!

,
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.