Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Session is invalid error in cfapplication.

Posted on 2004-10-07
6
Medium Priority
?
299 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
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.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

926 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