> When you sent a session vairable, you set a cookie. Is 
> this cookie set only for the length of the session and 
> does the cookie reside on the client's machine?

This isn't exactly the case. When you set a Session variable, CF stores the
variable in memory, and associates it with a unique key. That key is tied to
the browser in some way; usually with cookies, but it can be done with form
or URL variables too. By the time you set the Session variable, though, the
cookies have usually already been set. It isn't the case that there's one
cookie per Session variable, either.

> If it does is the cookie removed after the session is 
> completed?

By default, CF uses two cookies to associate a browser with Session data;
CFID and CFTOKEN. Those cookies are persistent, by default, and will be
stored by the browser for some long period of time. In CFMX, if the "Enable
J2EE Sessions" option is checked, CF will use one nonpersistent cookie
called JSESSIONID, which will be deleted by the browser when the user closes
the browser.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to