LoginSignup
6
6

More than 5 years have passed since last update.

ログアウトはGETではなくPOSTで処理するべきか。

Last updated at Posted at 2012-03-16

web development - Logout: GET or POST? - Stack Overflow
結局どっちにすべきなんだ。

  • 副作用があるから POST でやるべき。
  • データを変更しないんだったらGETで。するんだったらPOSTで。
  • GETだと他サイトのhtmlからsrc="<your logout link>" で勝手にログアウトされてしまう。

最後のは嫌だな。でもCookieを伴う普通のリクエストになるからlogoutになっちゃうな多分。

6
6
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6