Session is invalid error in cfapplication.

The following error is returned by the cfapplication tag: Session is invalid

This error occurs randomly and has nothing to do with the variables not being declared.

Our session variables are enabled and we use J2EE session variables. Could the J2EE session variables be causing problems?

Also we noticed that the session variables are sometime lost when opening a new window with javascript in IE or when downloading generated Excel documents. Are these related?

Thanks
LVL 3
DJ_Back-QAsked:
Who is Participating?
 
RomModConnect With a Mentor Commented:
The question has been PAQ'd and the 500 points have been refunded.
RomMod
Community Support Moderator
0
 
mrichmonCommented:
COuld the session timeout be too short?

You can put a test on the page

<cfif IsDefined("Session")>
0
 
DJ_Back-QAuthor Commented:
This happens in the cfapplication tag. There is not even one session variable defined yet.
0
 
Renante EnteraSenior PHP DeveloperCommented:
Hello DJ_Back-Q!

Can you post your code of your file "Application.cfm"?  Perhaps, we need to view it in order for us to investigate the cause of error.

Then do what mrichmon posted, you can have do.  Let's say, you are checking for the existence of 'session.name'

<cfif IsDefined('session.name')>
  Exists...
<cfelse>
  Not exists...
</cfif>


Goodluck!
eNTRANCE2002 :-)
0
 
DJ_Back-QAuthor Commented:
We fixed the problem by disabling J2EE sessions.
0
All Courses

From novice to tech pro — start learning today.