LoginSignup
0
0

More than 3 years have passed since last update.

【ColdFusion】セッションの破棄

Posted at

こちらの記事が参考になりました。
SessionInvalidate for JEE Sessions

ColdFusionセッションを破棄するには sessionInvalidate() を使えばよいですが、J2EEセッションを利用している場合にはこれで破棄できません。

以下の書き方で、ColdFusionセッションとJ2EEセッションの両環境に対応できます。

if (!isNull(getPageContext().getSession())) {
    getPageContext().getSession().invalidate();
} else {
    sessionInvalidate();
}
0
0
0

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
0
0