Ask a Question related to Coldfusion Database Access, Design and Development.
-
andygeers #1
Nested cftransactions ending my session
I'd like to write a general purpose component that lets me run functions that
need to be wrapped inside a cftransaction, but which is clever enough to work
out when it's already nested inside another cftransaction.
It seems that when you catch a "Nested transactions not supported" exception
with a cftry, it actually is implicitly starting a new session (either rolling
back or committing the outer transaction, I'm not sure which)
e.g.
<cftransaction> <!--- My outer transaction --->
<!--- Do a bit of cfquerying --->
...
<cftry>
<cftransaction> <!--- My nested transaction --->
...
</cftransaction>
<cfcatch type="database"> <!--- Catch the "Nested transactions not supported "
exception --->
<!--- A bit of testing suggets the outer transaction has been committed or
rolled back once I get here --->
</cfcatch>
</cftry>
</cftransaction>
Any other kind of database exception doesn't cause the rollback (since I'm
catching it) but only this nested cftransaction issue.
Anyone else experienced this?
andygeers Guest
-
Ending Session - Stumped...
I've built a shopping cart... works well... however once the order has been confrimed I need to clear the session. I'm stumped! Can not find any... -
Ending session question
I'm curious, why is it when I sign out of a site I created using sessions I wind up with: default.cfm?CFID=1403&CFTOKEN=34792644 as well as... -
Never ending session?!
well not really but i cant get the "onSessionEnd" event working here the code i use <cfcomponent> <cfset This.name = "cfDev" /> <cfset... -
Ending Session
I am trying to end a session for a site without having to completely close the browser to end it. When I access the site and log in it works... -
ASPNET Session ending before time
> Hi, Where did you set the session timeout? The setting in the IIS console is overridden by the <sessionState timeout> value in machine.config...



Reply With Quote

