Re: Weird Session Variable Problem
Have you checked error logs to see if, by chance, your CF service is crashing and restarting, and hence, killing off any active sessions? And are you losing just this one session variable, or *all* session variables? --Scott [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Weird Session Variable Problem
I am wondering if anyone has any ideas about a Session variable problem that cropped up today. I have an app that has been working fine for months on ColdFusion 5.0 and Windows 2000. Today it started throwing an error that a session variable does not exist. After initial investigation, it seems to behave as if the timeout for session variables was a few seconds or something like that. I have checked the timeout setting in the ColdFusion administrator and the timeout in my APPLICATION.cfm files, and both confirm much longer timeout settings--20 minutes. But my variables seem to last for just a few seconds (or there's something else going wrong to destroy them prematurely) I can click from page to page, and the variable will continue to be defined. I can reload the same page a few times, but often the third or forth time the error is thrown--session variable not defined. It was defined, but now its not--and there is nothing on the pages that updates that variable, there is only output code on these pages. I have tried from another machine, and the same thing happens. There is a relatively large amount of data being held in the session variable (its a list of numbers), but again, this has never been an issue before. The machine has 200 megs of free memory, and a couple gigs of free disk space. I should mention that the server has done a few other strange things lately including throwing error 26's where none have occured before. The only major change on the server that I am aware of is that the administrative password was changed recently, but Coldfusion seems to be working fine generally speaking, and it runs as system account on this server. Thanks for any ideas. __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: session variable problem
At 12:35 PM 12/12/00 -0600, you wrote: >At 10:02 AM 12/12/00 -0800, you wrote: > >Hi, > > > >I am having the strangest problem with a session variable. I set it in my > >application.cfm file and this is the code: > > > > > > > > > > > > > > > >2 out of the 3 people where I work can use the website just fine. The 3rd > >person has their session variable set but when I try and output it, > >nothing shows up. I know the session variable has been set because if I do > >a 'Yes I exist' I don't > >exist It gives me a 'Yes, I exist'. I even deleted it by using > > and ran the statement again > >and it said 'I don't exist'. When I do > >#session.Userid# nothing shows up? My website is > >dependent on the UserId to see certain pages so obviously it is not > >working for this 3rd person in my group. I'm stumped. Help, please. > > > >Try printing the session variable. If somehow the session variable were >empty, it might still exist and this code would have these results if >session.userid is "". Instead of printing "Yes I exist" print "User >ID:"#session.userid# After rereading your message I see that you may have already tried this. Sorta. This is user tracking and it's probably hitting a database and querying for the logon id and password at the beginning. If there aren't any records returned but you don't check to see if there are records returned, and you set userid from the query set (which is empty), you will get this kind of problem. In other words, if you aren't testing for records to actually be returned by this query, instead of booting a bad login, you are allowing the person into the system with an empty userid. I'm not saying that this is necessarily what is happening, but it will cause the symptoms you mentioned. The user could be logging in incorrectly so no record is returned and this would be the effect. ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: session variable problem
At 10:02 AM 12/12/00 -0800, you wrote: >Hi, > >I am having the strangest problem with a session variable. I set it in my >application.cfm file and this is the code: > > > > > > > >2 out of the 3 people where I work can use the website just fine. The 3rd >person has their session variable set but when I try and output it, >nothing shows up. I know the session variable has been set because if I do >a 'Yes I exist' I don't >exist It gives me a 'Yes, I exist'. I even deleted it by using > and ran the statement again >and it said 'I don't exist'. When I do >#session.Userid# nothing shows up? My website is >dependent on the UserId to see certain pages so obviously it is not >working for this 3rd person in my group. I'm stumped. Help, please. > Try printing the session variable. If somehow the session variable were empty, it might still exist and this code would have these results if session.userid is "". Instead of printing "Yes I exist" print "User ID:"#session.userid# ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: session variable problem
check to see if they've got both cookies and in memory cookies turned on or off. - Original Message - From: "S R" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, December 12, 2000 1:02 PM Subject: session variable problem > Hi, > > I am having the strangest problem with a session variable. I set it in my application.cfm file and this is the code: > > <CFLOCK SCOPE="SESSION" TIMEOUT="30" TYPE="EXCLUSIVE"><CFIF NOT IsDefined("session.UserID")> <CFSET session.UserID = #GetVar.UserID#></CFIF></CFLOCK> > > 2 out of the 3 people where I work can use the website just fine. The 3rd person has their session variable set but when I try and output it, nothing shows up. I know the session variable has been set because if I do a <cfif isDefined("session.userid")> 'Yes I exist' <cfelse>I don't exist</cfif> It gives me a 'Yes, I exist'. I even deleted it by using <cfset structdelete("session.userid")> and ran the <cfif> statement again and it said 'I don't exist'. When I do <cfoutput>#session.Userid#</cfoutput> nothing shows up? My website is dependent on the UserId to see certain pages so obviously it is not working for this 3rd person in my group. I'm stumped. Help, please. > > Thanks > > SalGet more from the Web. FREE MSN Explorer download : http://explorer.msn.com">http://explorer.msn.com > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
session variable problem
Hi, I am having the strangest problem with a session variable. I set it in my application.cfm file and this is the code:2 out of the 3 people where I work can use the website just fine. The 3rd person has their session variable set but when I try and output it, nothing shows up. I know the session variable has been set because if I do a 'Yes I exist' It gives me a 'Yes, I exist'. I even deleted it by usingI don't exist and ran the statement again and it said 'I don't exist'. When I do #session.Userid# nothing shows up? My website is dependent on the UserId to see certain pages so obviously it is not working for this 3rd person in my group. I'm stumped. Help, please. Thanks SalGet more from the Web. FREE MSN Explorer download : http://explorer.msn.com">http://explorer.msn.com ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Session variable problem
A little birdie told me that a cool one is coming called eForums - keep an eye peeled for it! No I didnt work on it. Steve - Original Message - From: Frederic COLLIN <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 12, 2000 07:37 AM Subject: Re: Session variable problem > Hi, > > Does someone know some good Forums written in Cold Fusion ? > > Thanks. > > -- > Archives: http://www.eGroups.com/list/cf-talk > To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Session variable problem
Hi, Does someone know some good Forums written in Cold Fusion ? Thanks. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Session variable problem
We had this problem on one of our development servers when we did an upgrade without doing an uninstall first. Essentially, every session variable had to be set twice or deleted twice. Something to look into. -d Deanna Schneider Interactive Media Developer UWEX Cooperative Extension Electronic Publishing Group 103 Extension Bldg 432 N. Lake Street Madison, WI 53706 (608) 265-7923 -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Session variable problem
Sounds like an internal network issue. Are you running any kind of shared ip addressing? (ie proxy server, etc.) That could cause the problem. Billy - Original Message - From: "David Berger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 11, 2000 12:08 PM Subject: Session variable problem > OK, I'm running CF4.5, on WinNT4.0, IIS4.0... We are using session > management on a particular application. There are 5 developers > working/helping on this project. Everything has been working fine for the > past 4+ weeks, until today. > > Whomever logs in first, between me and one other specific developer, well we > end up sharing the same session variable. None of the other developers are > experiencing this problem. I myself have never seen this before. It seems > that ColdFusion believe's we are the same user. What could be causing this? > --Any help, would be greatly appreciated. > > Thanks, > David J. Berger > Web Developer - Consultant > Cornell Techinical Services > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > -- > Archives: http://www.eGroups.com/list/cf-talk > To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Session variable problem
Possibly using the same copy of studio? - Original Message - From: David Berger <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 11, 2000 10:08 AM Subject: Session variable problem > OK, I'm running CF4.5, on WinNT4.0, IIS4.0... We are using session > management on a particular application. There are 5 developers > working/helping on this project. Everything has been working fine for the > past 4+ weeks, until today. > > Whomever logs in first, between me and one other specific developer, well we > end up sharing the same session variable. None of the other developers are > experiencing this problem. I myself have never seen this before. It seems > that ColdFusion believe's we are the same user. What could be causing this? > --Any help, would be greatly appreciated. > > Thanks, > David J. Berger > Web Developer - Consultant > Cornell Techinical Services > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > > -- > Archives: http://www.eGroups.com/list/cf-talk > To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. > -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Session variable problem -- High level question!
Well, the problem is gone but not exactly sure what caused it. Here is a more detailed explanation of what was happening and how/when it went away. What is supposed to happen 1) When a user calls up an application from within .../dev_helpdesk directory, the application.cfm file checks for session.loggedin, if not defined it queries our Census database using cgi.remote_user, then sets two session variables, one with the primary key from the census database and one with the user's name. 2) I noticed that when I entered the application this morning, that it thought that I was another developer (frank - using IE4.0). Well, I'm working off of a laptop (NT workstation, IE 4.0), that Frank has used in the past. So, we tried clearing the history, cache, deleting cookies from both machines... running this statement. StructClear(session); ...and nothing seemed to change the fact that our server thought we were the same person. 3) So, finally I rebooted and Frank ran StructClear(session);. Then when I re-entered the system, I did it through Netscape and the problem went away on both browsers. 4) None of the other 3 developers were experiencing this problem. If anybody has any incite into why this fixed the problem, I would really appreciate. ---Just can't accept that it was "black magic". David J. Berger Web Developer - Consultant Cornell Techinical Services Thanks again! >From: "David Berger" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: [EMAIL PROTECTED] >Subject: Session variable problem >Date: Thu, 11 May 2000 10:08:08 PDT > >OK, I'm running CF4.5, on WinNT4.0, IIS4.0... We are using session >management on a particular application. There are 5 developers >working/helping on this project. Everything has been working fine for the >past 4+ weeks, until today. > >Whomever logs in first, between me and one other specific developer, well >we >end up sharing the same session variable. None of the other developers are >experiencing this problem. I myself have never seen this before. It seems >that ColdFusion believe's we are the same user. What could be causing >this? > --Any help, would be greatly appreciated. > >Thanks, >David J. Berger >Web Developer - Consultant >Cornell Techinical Services > >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com > >-- >Archives: http://www.eGroups.com/list/cf-talk >To Unsubscribe visit >http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or >send a message to [EMAIL PROTECTED] with 'unsubscribe' in >the body. Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Session variable problem
OK, I'm running CF4.5, on WinNT4.0, IIS4.0... We are using session management on a particular application. There are 5 developers working/helping on this project. Everything has been working fine for the past 4+ weeks, until today. Whomever logs in first, between me and one other specific developer, well we end up sharing the same session variable. None of the other developers are experiencing this problem. I myself have never seen this before. It seems that ColdFusion believe's we are the same user. What could be causing this? --Any help, would be greatly appreciated. Thanks, David J. Berger Web Developer - Consultant Cornell Techinical Services Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.