Search forums only
Search forums only
Adobe Creative Cloud
Downloading, Installing, Setting Up
Adobe Experience Cloud
Adobe Flash Player
Adobe Photoshop Lightroom
Adobe Photoshop Elements
Adobe Animate CC
Adobe Premiere Pro
Adobe After Effects
View all communities
Meet the experts
Learn our products
Get inspired in the lounge
Read the blog
Please enter a title.
You can not post a blank message. Please type your message and try again.
on Mar 18, 2009 12:15 PM by CFmonger
cffunction, onSessionEnd throwing an error, please help
Mar 18, 2009 11:25 AM
I am using an application.cfc file to run my web site. I added an argument for onmissingtemplate and when I did that, it made my onSessionEnd statement throw an error:
this is my statement:
<cffunction name="onSessionEnd" returnType="void">
<cfargument name="theSession" type="struct" required="true">
<cfset var duration = dateDiff("s",arguments.theSession.created,now())>
<cflog file="#THIS.name#" text="Session lasted for #duration# seconds.">
and this is the error:
Invalid CFML construct found on line 85 at column 1.
ColdFusion was looking at the following text:
The CFML compiler was processing:
< marks the beginning of a ColdFusion tag.Did you mean LT or LTE?
The error occurred in C:\Websites\4npp8b\Application.cfc: line 85
83 : </cfcomponent>
85 : <cffunction name="onSessionEnd" returnType="void">
86 : <cfargument name="theSession" type="struct" required="true">
87 : <cfset var duration = dateDiff("s",arguments.theSession.created,now())>
I don't know if this will make a difference, but here is my onsessionstart function:
<cffunction name="onSessionStart" returntype="any" output="true">
<cfset SESSION.created = now()>
I can't figure out what I did wrong to make it throw that error. Any ideas?
This content has been marked as final.
Show 1 reply
Re: cffunction, onSessionEnd throwing an error, please help
Mar 18, 2009 12:15 PM
in response to CFmonger
never mind, I figured it out. sorry to bother.
More Like This
Retrieving data ...
- 10 points