aaronjhackl
asked on
Session Variable dissappears.
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.
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.
aaronjhackl,
Also make sure that the home or profile pages are not reseting this variable.
Regards
Plucka
Also make sure that the home or profile pages are not reseting this variable.
Regards
Plucka
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=#CreateTime Span(0,0,1 0,0)#
for a ten minute session.
Ward
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=#CreateTime
for a ten minute session.
Ward
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
Have you.
1. Setup session variables in Administrator
2. Setup session variables in application.cfm
Post your code and application.cfm
Regards
Plucka