Managing Cookies in Maxthon


Recommended Posts

Maxthon has only a basic level of cookie management from the UI. Your options are delete all or nothing using the options provided.
 
This can be accessed from:
 - the quicktools bar,
 - Main Menu > Clear Browsing Data, or 
 - CTRL-SHIFT-DEL keyboard shortcut.
 
Select the Delete cookies option on the dialog that opens.
 
 
q8SZ2k6.png
 
 
 
Using Developer Tools
 
Sometimes you may want or need to delete cookies for a particular site due to errors or otherwise and deleting all your cookies isn't the most ideal option.
 
To work around this we have some options.
 
Firstly Maxthon does allow you delete cookies for the current site by using the Developer Tools.
 
FOR MX5 (5.1.x and later)
- Open the Developer Tools (F12)
- Go to the Application tab, click the Clear storage item.
- Ensure at least the Cookies option is selected in the right pane.
- Click the Clear site data button.
- You can also right-click on the site address under Storage > Cookies and select Clear.
 
MaxthonSnap20170705092643.png
 
 
FOR MX4.9 (and early MX5 versions)
- Open the Developer Tools (F12)
- Go to the Resources tab, then the cookies section.
- Right-click on the address you would like to clear cookies from and select Clear.
- You can also select individual cookies if required in the right pane.
 
v6PzdJe.png
 
 
This should be your first option when requiring cookies to be deleted only from a particular site.
 
Obviously it's not recommended for anyone who isn't comfortable playing around with things that aren't made directly available by the dev's through the UI.
 
Use at your own risk etc.
  • Like 2
Link to comment
Share on other sites

Advanced cookie management using third party programs
 
If you need to do more than clean cookies on one or two sites using the above method, then another option is to use a third party tool to help with this.
 
Using Cookiespy
Cookiespy is a small utility that supports Maxthon. Install and select Maxthon from the tabs on top. You may need to select it using the + button on the right top corner if you use the portable version. It will display cookies and allow you to search, then delete as required.
 
 
Using a SQL database manager
Thanks to the scripting nature that SQL DB uses you can quite easily selectively delete cookies using any SQL browser/manager program. I've tested with DB Browser for SQLite.
 
This is a basic rundown of how to use it:
 
Open the cookie file (\UserData\Users\guest\Cookies) - Make a backup first!
 
In the Execute SQL tab enter the following query:
SELECT * FROM cookies
 
Then on the next line is where you will state the cookies you want to display/delete in the format:
WHERE (host_key NOT LIKE '%facebook%') AND (host_key NOT LIKE '%google%')
 
Press the play button to run the query. The SELECT command displays all the cookies that are not what you have designated in the above command.
 
ccFg1OF.png
 
To delete cookies use the query:
DELETE FROM Cookies
WHERE (host_key NOT LIKE '%facebook%') AND (host_key NOT LIKE '%google%')
 
Press the play button to run the query. This will delete ALL cookies that DO NOT have facebook or google in the cookie data.
 
qroQsur.png
 
You can add as many as you like, they just need to be connected with AND:
WHERE (host_key NOT LIKE '%facebook%') AND (host_key NOT LIKE '%google%') AND WHERE (host_key NOT LIKE '%microsoft%') AND (host_key NOT LIKE '%yahoo%')
 
Also make sure all the symbols ('%%') are there otherwise you will get errors.
 
NOTE:
You only need to use the DELETE query. I've mentioned the SELECT option so you can view the cookies that will be deleted in case there is some other ones that you didn't add to the list.
 
I recommend creating a backup of your Cookies file before you do this in case something goes wrong. But they're only cookies - so it's not that bad.
 
USE AT YOUR OWN RISK, i'm just providing the info that I came across and won't be responsible for anyone losing any data by using this method.
 

 
Seeing as the browser natively writes and reads to a SQL database, i'd imagine it's relatively trivial for the developers to create a UI to make it accessible to the end user. But for whatever reason it hasn't been done yet.
 
I'd guess that it could be added as an extension if there was a way that you could implement a SQL manager into the extension file somehow.
 
Regardless this is an option for anyone that needs to remove multiple cookies and keep select ones from different sites.
 
Enjoy :-)
  • Like 2
Link to comment
Share on other sites