RE: disappearing session variables
Is Netscape issuing a new cookie on the second page because it thinks that the domain has changed? -Original Message- From: c talk [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 4:16 PM To: CF-Talk Subject: disappearing session variables snip When I browse this site on my laptop/dev server using it's IP address (192.168.x.x), the site runs ok in IE, but chokes on the 2nd page in Netscape. It works in IE if I use either 127.0.0.1 or localhost as the domain. Netscape only likes localhost. __ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: disappearing session variables
Lon, et al --- Lon Lentz [EMAIL PROTECTED] wrote: Is Netscape issuing a new cookie on the second page because it thinks that the domain has changed? The domain doesn't change between pages. I didn't think browsers issued cookies? * john * -Original Message- From: c talk [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 4:16 PM To: CF-Talk Subject: disappearing session variables snip When I browse this site on my laptop/dev server using it's IP address (192.168.x.x), the site runs ok in IE, but chokes on the 2nd page in Netscape. It works in IE if I use either 127.0.0.1 or localhost as the domain. Netscape only likes localhost. __ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: disappearing session variables
Sorry, sloppy use of words. I once had a problem with dying session variables and found that NS was showing a new set of cookies. Apparently when the reference changes, NS does not see it as being in the same domain and does not send the cookies it set for the previous page. CF sees the page request from a new user and sets new cookies for a new session. A session for which session variables have not been set. Example: If you came to www.mydomain.com, one set of cookies would be set. But let's say you follow a link to another page on the server through a link that had http://mydomain.com. You would get a new set of cookies and a new session assigned to you. -Original Message- From: c talk [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 5:24 PM To: CF-Talk Subject: RE: disappearing session variables Lon, et al --- Lon Lentz [EMAIL PROTECTED] wrote: Is Netscape issuing a new cookie on the second page because it thinks that the domain has changed? The domain doesn't change between pages. I didn't think browsers issued cookies? Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists __ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: disappearing session variables
do you have SETDOMAINCOOKIES=YES in your CFAPPLICATION tag? if so, take it out. i remember hitting this problem at some point in the past. christopher olive, cto, vp of web development atnet solutions, inc. 410.931.4092 http://www.atnetsolutions.com -Original Message- From: c talk [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 4:16 PM To: CF-Talk Subject: disappearing session variables Hi all I'm using IE 5 and Nestcape 4.72 to develop a site for a client. I sometimes experience this error: Error resolving parameter BSESSION.PRODUCT_LINE/BPPThe session variable PRODUCT_LINE does not exist. This session.variable is defined and called on the site's home page. It's called again when users drill down to the next level. I use it to keep track of which of two product lines the user is browsing. When I browse this site on my laptop/dev server using it's IP address (192.168.x.x), the site runs ok in IE, but chokes on the 2nd page in Netscape. It works in IE if I use either 127.0.0.1 or localhost as the domain. Netscape only likes localhost. Are session vars handled differently between the browsers? What would prompt Netscape to drop a session var? Does browsing by the 192.168.x.x address differ from browsing by 127.0.0.1 and/or 'localhost'? Assistance resolving this would be greatly appreciated. * john * __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! __ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: [Disappearing Session Variables!]
put locks around all your session var read/writes. also is you URL changing domains or from IP to name-based? i don't know if this makes a difference but it might. Robyn Follen [EMAIL PROTECTED] wrote: Hey Folks, Does anyone know if there is a limit to the number of session variables that one application can have? We have a case here where our application drops session variables from time to time without explanation. If it helps, we have this piece of code in the application.cfm file to get rid of all session variables on a browser close: cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN") cfset cfid_local = Cookie.CFID cfset cftoken_local = Cookie.CFTOKEN cfcookie name="CFID" value="#cfid_local#" cfcookie name="CFTOKEN" value="#cftoken_local#" /cfif Any help would be appreciated! Robyn P.S., could anyone explain in detail why the above code actually works? We have some theories but would love a definitive answer... Robyn Follen Web Applications Developer PreVision Marketing Inc. 55 Old Bedford Road Lincoln, MA 01773 ~~ 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: Disappearing Session Variables!
if your cf server restarts itself sessions will be lost. that happened to me. i now use cookies that have time/date info in the cookie. -Original Message- From: Robyn Follen [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 8:38 AM To: CF-Talk Subject: Disappearing Session Variables! Hey Folks, Does anyone know if there is a limit to the number of session variables that one application can have? We have a case here where our application drops session variables from time to time without explanation. If it helps, we have this piece of code in the application.cfm file to get rid of all session variables on a browser close: cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN") cfset cfid_local = Cookie.CFID cfset cftoken_local = Cookie.CFTOKEN cfcookie name="CFID" value="#cfid_local#" cfcookie name="CFTOKEN" value="#cftoken_local#" /cfif Any help would be appreciated! Robyn P.S., could anyone explain in detail why the above code actually works? We have some theories but would love a definitive answer... Robyn Follen Web Applications Developer PreVision Marketing Inc. 55 Old Bedford Road Lincoln, MA 01773 ~~ 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: disappearing session variables.
This is just a guess... If you are not using cookies to retain the CFTOKEN and CFID, you'll need to pass them in the url. If you don't have cookies on, and you aren't retaining the variables in the URL, CF Server will not be able to tell who is connecting, and may issue a new CFTOKEN and CFID each time you make a page request - which means that the Session variables that you set for the client (referenced by the CFTOKEN and CFID) now appear to be gone because the CFTOKEN and CFID are different. Just a guess. Have you tried outputting the CFTOKEN and CFID at the bottom of the application.cfm to see if they are changing? If they are, just make sure that you retain them. If you are using cookies, it's easiest to just put this in the application.cfm: cfapplication name="MyApp" clientmanagement="Yes" setclientcookies="Yes" cfcookie name="CFID" value="#CFID#" cfcookie name="CFTOKEN" value="#CFTOKEN#" Hope that helps, Byron -Original Message- From: Won Lee [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 09, 2000 1:24 PM To: CF-Talk Subject: disappearing session variables. Anyone know why a session variable would be reset. I set it on one page. cfoutput it on the bottom. i go to a page i built to test the variables. All it does it just print it out. But the variable is reset to an empty string. I do declare it as an empty string in the Application.cfm. but i have a flag to only reset the variable when the application is loaded the first time. Debug says only 4 processes are running test.cfm application.cfm ../application.cfm from the root above that i include and startup, parsing, and shutdown Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED] Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message with 'unsubscribe' in the body to [EMAIL PROTECTED]