[Looking for Charlie's main web site?]

How to determine your current client storage value

Note: This blog post is from 2008. Some content may be outdated--though not necessarily. Same with links and subsequent comments from myself or others. Corrections are welcome, in the comments. And I may revise the content as necessary.
This may be a surprise to some: it was to me.

[....Continue Reading....]

Comments
Another "undocumented" method that might help is the:

APPLICATION.GetApplicationSettings()

This will give you the settings that were selected for the application:

http://www.bennadel....

I am not sure if it gives you the *same* settings that you would get from inspecting the CLIENT scope, but there is a "ClientStorage" attribute.
Hi Charlie, thanks for the post! The link to Paul's page appears broken...?
# Posted By Mischa | 12/2/08 3:30 PM
@Ben, great stuff as always. Thanks. I can confirm that yes, the value reported for clientstorage there is indeed the same as what I've noted above.

I'd love to find more of these available methods buried in various scopes, but it's not really easy to find, as far as I can tell (even studying the servicefactory clientscopeservice, where I don't see any getpersistsettings method or anything like it.) If anyone knows any tricks for finding (or knows of somewhere showing a list of) these methods buried in the scopes, please let us know.

@Mischa, how so? I just tested it again and I see the page. Maybe you're thrown by it showing source code. That's what it should be. Sorry I didn't clarify that above. It's a dump of a context.cfm custom tag of his. Or are you saying you get some sort of 404 error? I don't. (I do appreciate the heads up if you or anyone find a broken link in my stuff, so thanks.)
I used to use Java Reflection all the time to play around with objects:

http://www.bennadel....

I haven't done it lately, but its in my testing environment so I can call on it when necessary.
David Stamm has a object inspector that puts mine to SHAME! Not sure if he made it public. I'll send him this way.
Awesome, Ben. Thanks again. I just ran that code against the client scope and indeed the getpersistsettings is there, as are a couple other interesting ones, like getglobalvars (reporting the "global variables" that are enabled by default for client vars), getrefcount (which I haven't quite figured out yet), and some others (including some is* functions, like isClientIdFromUrl).

And of course there are many interesting ones for the session scope, too. Will look forward to any further help David's code may offer.
I will ping Dave about this post.
Hmmm, works now... strange, I got an error other than your 404 or "page could not be displayed"... maybe somehow the cfm extension wasn't properly processed on my work pc.
# Posted By Mischa | 12/2/08 9:31 PM
Copyright ©2024 Charlie Arehart
Carehart Logo
BlogCFC was created by Raymond Camden. This blog is running version 5.005.
(Want to validate the html in this page?)

Managed Hosting Services provided by
Managed Dedicated Hosting