>> Is there a way to access certain attributes of a cookie, such 
>> as the creation and expiration dates?
>
>Not from the server, but you can use JavaScript (document.cookie).

I don't think that's going to help either... you can get the name and value of 
the cookies, but not the particulars from document.cookie.

If you want to "dump" cookies on the client my debugging library has a method 
for this, but it just gives name and value (there's an example of the output in 
the examples):

http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_Debug

If you want more control over cookies on the client I've also got a cookie 
abstraction object that (I think) works well:

http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_Cookies

Unfortunately neither lets you actually interogate the meta-definition of 
cookies.  Although if there is a way to do it in JavaScript that I've 
overlooked I'd be happily suprised!

The only way I know to be sure is to reset the cookie and remember the 
parameters you've used or to encode the parameters into the cookie data itself. 
 Of course you're still limited by the security model and so many of the 
parameters, if set, will prevent you from seeing the cookie at all.

(It should go without saying, but there is no way for a program restrained by 
the security model to see/access/acknowledge cookies its not permitted to 
access.)

Jim Davis

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 beta – Build next generation applications today.
Free beta download on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281768
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to