Solved

Session is invalid error in cfapplication.

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

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

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

Suggested Solutions

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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

912 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

19 Experts available now in Live!

Get 1:1 Help Now