Session is invalid error in cfapplication.

Posted on 2004-10-07
Last Modified: 2013-12-24
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?

Question by:DJ_Back-Q
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 35

Expert Comment

ID: 12253015
COuld the session timeout be too short?

You can put a test on the page

<cfif IsDefined("Session")>

Author Comment

ID: 12254666
This happens in the cfapplication tag. There is not even one session variable defined yet.
LVL 14

Expert Comment

by:Renante Entera
ID: 12255353
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 ''

<cfif IsDefined('')>
  Not exists...

eNTRANCE2002 :-)

Author Comment

ID: 12346607
We fixed the problem by disabling J2EE sessions.

Accepted Solution

RomMod earned 0 total points
ID: 12389215
The question has been PAQ'd and the 500 points have been refunded.
Community Support Moderator

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question