send2cgeo icon indicating copy to clipboard operation
send2cgeo copied to clipboard

Don't use cookies in send2cgeo

Open Lineflyer opened this issue 10 years ago • 3 comments

From @Lineflyer on August 9, 2012 19:30

From support mail:

For the send2cgeo – Userscript it is necessary to accept cookies. If the cookies are deleted (so in my case) I have to reconnect/reregistrate my browser and phone on your homepage before I use the script on the GC-homepage. The Greasemonkey-Project allows you to store some data in the browser (also after restart), so that you don’t need cookies!

Copied from original issue: cgeo/cgeo#1946

Lineflyer avatar Jun 26 '15 06:06 Lineflyer

From @jeancaffou on August 9, 2012 23:22

I vote for passing the unique token / ID via GET. It's as secure as sending the ID/token via cookie.

This method is more permanent and useful for scripting and also greasemonkey script can be generated dynamically so that it would include the token.

Lineflyer avatar Jun 26 '15 06:06 Lineflyer

From @BudBundi on August 15, 2012 8:25

We can save a value via http://wiki.greasespot.net/GM_setValue and get so send http://wiki.greasespot.net/GM_getValue but than must the code on HP change. Perhaps for both methods cookie and setting over script.

Lineflyer avatar Jun 26 '15 06:06 Lineflyer

From @jeancaffou on August 15, 2012 8:27

But please do not drop the cookie functionality if you decide to change the greasemonkey script.

Lineflyer avatar Jun 26 '15 06:06 Lineflyer