Use POST
.
In 2010, using GET
was probably an acceptable answer. But today (in 2013), browsers will pre-fetch pages they “think” you will visit next.
Here is one of the StackOverflow developers talking about this issue on twitter:
I’d like to thank my bank for making log off a GET request, and the Chrome team for handy URL prefetching.- Nick Craver (@Nick_Craver) January 29, 2013
fun fact: StackOverflow used to handle log-out via GET, but not anymore.