Coldfusion Session Cookies

I am trying to delete a client session cookie when I access a specific page. How to do it?

+3
source share
3 answers

Do you mean cookies CFID and CFTOKEN? Or session structure? You may have expired from cookies as follows:

<cfcookie name="CFID" value="" expires="NOW" />
<cfcookie name="CFTOKEN" value="" expires="NOW" />

but if you want to clear the session area, you have to do this:

<cfscript>
structClear(Session);
</cfscript>
+11
source

Again set a cookie with blank data and an expiration date.

<cfcookie name="cookie_name" value="" expires="now" />

It will remain for the rest of the request, and then it should go.

+1
source

Source: https://habr.com/ru/post/1721711/


All Articles