Link to home
Create AccountLog in
Avatar of Errol Farro
Errol FarroFlag for Aruba

asked on

How to determine if there is another .CFM already running

I have two .CFM, a1.cfm and a2.cfm, that cannot run at the same time. While a1.cfm is running and someone wants to start a2.cfm, a2.cfm should get the message that a1.cfm is already active and that a2.cfm cannot start.

Conversely, while a2.cfm is running, a1.cfm cannot be invoked.

Is there a ColdFusion command which can very if there is a .CFM already running ?
ASKER CERTIFIED SOLUTION
Avatar of _agx_
_agx_
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Charlie Arehart
Charlie Arehart

FWIW, I'll concur that there is no programmatic way built into cf to determine what's already running, and that either of the two alternatives offered by agx that are just what I would also have offered. I can't think of any better solution.