Solved

Session is invalid error in cfapplication.

Posted on 2004-10-07
6
292 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
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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

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…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

821 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