Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Session is invalid error in cfapplication.

Posted on 2004-10-07
6
Medium Priority
?
297 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
[X]
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
6 Comments
 
LVL 35

Expert Comment

by:mrichmon
ID: 12253015
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
ID: 12254666
This happens in the cfapplication tag. There is not even one session variable defined yet.
0
 
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 'session.name'

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


Goodluck!
eNTRANCE2002 :-)
0
 
LVL 3

Author Comment

by:DJ_Back-Q
ID: 12346607
We fixed the problem by disabling J2EE sessions.
0
 

Accepted Solution

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

Featured Post

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

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

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

719 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