Solved

Session Variable dissappears.

Posted on 2004-04-24
6
135 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
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
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

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…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

816 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

9 Experts available now in Live!

Get 1:1 Help Now