Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving into Application.cfc

Status
Not open for further replies.

minli98

IS-IT--Management
Aug 30, 2005
178
US
Hi,

I am trying to replace my application.cfm with application.cfc to take advantage of the onSessionStart and onSessionEnd methods, but so far I am not having any luck.

My problem is it doesn't seem that the onSessionStart or onSessionEnd get triggered. I have made my session expires by doing <cfapplication sessiontimeout="#createtimespan(0,0,0,0)#">.

Another problem is that when I created a log file using <cflog>, the application name shows up as the one defined in application.cfm, and not the new name I created in application.cfc. I tried expiring the application by using <cfapplication> and setting the applicationtimeout attribute to 0, but that doesn't change anything.

Can anyone who uses application.cfc give me some tips on what I could try? I used the appication.cfc template from

Many thanks.

Min
 
I've had some issues getting application.cfm set up properly too. I need to spend more time playing with it.

 
Another problem is that when I created a log file using <cflog>, the application name shows up as the one defined in application.cfm, and not the new name I created in application.cfc. I tried expiring the application by using <cfapplication> and setting the applicationtimeout attribute to 0, but that doesn't change anything.

I figured out the error that caused this problem (silly mistake not worth mentioning), but I still can't get my onSessionStart and onSessionEnd to work. I tried both the <cfapplication> method I described before and structDelete function to end my session. They both erased all session variables, but does that mean the session has ended? If so, why isn't the onSessionEnd triggered? If not, how do I end a session then?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top