> This is what I'm using as a workaround
>
> <cftry>
> <cfapplication name="myapp"
> clientmanagement="Yes"
> sessionmanagement="Yes"
> setclientcookies="No"
> sessiontimeout="#CreateTimeSpan(0,2,0,0)#"
> clientstorage="myclientdsn">
> <cfcatch type="java.lang.ArithmeticException"><cfif
> isDefined("session")><cfdump
> var="#session#"><cfelse><cfoutput>session is not defined
> #cookie.jsessionId# <cfcookie name="jsessionId" value=""
> expires="#Now()#"><cflocation url="http://#cgi.server_name#"
> addtoken="no"></cfoutput></cfif></cfcatch>
> </cftry>
>
> Is there a better way? Perhaps something that will preserve
> the form post?
That's a pretty ugly workaround, since you're losing the user's session, but
I guess it beats losing the session and getting an error.
Anyway, if you catch the exception, are you finding that the session is not
defined?
To avoid losing the form post data, you might be able to use the forward
method of getPageContext.
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!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262498
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4