cgeo / send2cgeo

Script for Mozilla Firefox and Google Chrome browser to send geocaches directly from your browser to c:geo on your phone.
http://www.cgeo.org/send2cgeo.html
22 stars 12 forks source link

Don't use cookies in send2cgeo #12

Open Lineflyer opened 9 years ago

Lineflyer commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

From @jeancaffou on August 15, 2012 8:27

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