• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Clearing Client variables

Contributor ,
Feb 07, 2008 Feb 07, 2008

Copy link to clipboard

Copied

Now this may seem silly because the most obvious way is to just use structclear(). And that sort of works. If I then dump client it comes up empty. BUT if I then call one of the client variables, there it is.

I'm thinking this is a cookie problem. So how do I fully clear the client structure?
TOPICS
Advanced techniques

Views

304

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 07, 2008 Feb 07, 2008

Copy link to clipboard

Copied

LATEST
There is a function called "DeleteClientVariable". The parameter it takes is the name of the variable.

I've built something in the past that loops through the client struct, deleting variables using the above function.

I'm not sure if it will "actually" delete it, but it's worth a try!

Here's a link to the livedocs:

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_c-d_42.html#4994925

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation