Solved

Session Variable dissappears.

Posted on 2004-04-24
6
138 Views
Last Modified: 2013-12-24
I'm successful in assigning a Session.auth.username variable I check it once don't change it then when I try to check it again it's no longer their could anyone think of a reason for this?

The example is on http://teamroom.colorado.edu/courses/syst3510/student%20groups/group5/start.cfm

logon as username 1 and password 2
You'll see the ,2, which will mean it recognizes the variable by running a query for your first name 2 and last name which is null essentially in the database.

Then click on My Profile and the session variable is no longer there for username as evidenced by the error message, and the isloggedin session variable is gone as evidenced by the login screen reappearing.  

The two title bars are in an application file as well.

If you need to see the code I'll gladly post it but I think it's more of a logic error then code.
0
Comment
Question by:aaronjhackl
[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 18

Expert Comment

by:Plucka
ID: 10909826
Hi aaronjhackl,

Have you.

1. Setup session variables in Administrator
2. Setup session variables in application.cfm

Post your code and application.cfm

Regards
Plucka
0
 
LVL 18

Expert Comment

by:Plucka
ID: 10909844
aaronjhackl,

Also make sure that the home or profile pages are not reseting this variable.

Regards
Plucka
0
 

Expert Comment

by:PrtyAnimll
ID: 10910223
Aaron,

Perhaps you have your sessiontimeout attribute set too short for the Session variable to exist.  Its arguments are Days,Hours,Minutes,Seconds

It looks like,

sessiontimeout=#CreateTimeSpan(0,0,10,0)#

for a ten minute session.

Ward
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 17

Accepted Solution

by:
Tacobell777 earned 125 total points
ID: 10910956
There could only be a couple of reasons;

1. your browser does not accept cookies
2. the <cfapplication tag if overwritten by another application.cfm (you do have your cfapplication tag in the application.cfm, right?)
3. you overwrite the value somewhere
4. the session timeout is set very short (very very short, but unlikely)
5. you are calling the code before the cfapplication tag is initialized, but that would throw an error
0
 
LVL 20

Expert Comment

by:trailblazzyr55
ID: 10912777
to add on to what Tacobell777 said, make sure your "Application.cfm" where you turn on your sessions looks exactly like this "Application.cfm" when you save it.
0
 
LVL 17

Expert Comment

by:Tacobell777
ID: 10913768
thats if your on linux or any other case sentsitive OS, which I doubt otherwise the sessions would not just work in one page and no tin the other, but still a worthy thing to note.
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

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…
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Suggested Courses

751 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