> How would you do this programmatically?

One easy way, offhand:

<cftry>

        <cfset Session.isEnabled = true>

        <cfcatch>
                ... Session management isn't enabled - do something!
        </cfcatch>

</cftry>

Alternatively, you might test for the existence of the Session scope - I
don't know if that'll work, but it might:

<cfif IsDefined("Session")>...</cfif>

Finally, in CFMX 7 the values that you'd set within your Application.cfc are
available as variables within it, although I'm not sure how (or if) they're
available outside the Application.cfc instance.

There may well be other, better methods, but this is what popped into my
head.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212043
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to