Solved

Session is invalid error in cfapplication.

Posted on 2004-10-07
6
286 Views
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?

Thanks
0
Comment
Question by:DJ_Back-Q
6 Comments
 
LVL 35

Expert Comment

by:mrichmon
Comment Utility
COuld the session timeout be too short?

You can put a test on the page

<cfif IsDefined("Session")>
0
 
LVL 3

Author Comment

by:DJ_Back-Q
Comment Utility
This happens in the cfapplication tag. There is not even one session variable defined yet.
0
 
LVL 14

Expert Comment

by:Renante Entera
Comment Utility
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
 
LVL 3

Author Comment

by:DJ_Back-Q
Comment Utility
We fixed the problem by disabling J2EE sessions.
0
 

Accepted Solution

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

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

772 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now