RE: Netscape Cookie Woes
As far as I understandm session state is maintained through a cookie. CFID and CFTOKEN are stored as cookie values. The session state is destroyed when you destroy the cookies file. A new session is thus started and all of your session variables are lost. -Original Message- From: Shawn Grover [mailto:[EMAIL PROTECTED]] Sent: Monday, August 27, 2001 1:30 PM To: CF-Talk Subject: Netscape Cookie Woes we have an application which uses a custom tag at the start of each template. This tag checks session variables against the required access level for the page and if need be, redirects to the login page. We are finding that Netscape refuses to run this tag (it hangs trying to load the page) if we delete the cookies file. That's really weird because the tag doesn't refer to the cookies. The Login page does use a cookie for populating the username text box, but that's it. Otherwise, we don't use cookies. (except system session cookies). I know we aren't even making it to the login page because of troubleshooting code/output I've inserted into the routines. Anyone see this before? or have an idea how to fix it? Thanks. Shawn Grover ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm 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: Netscape Cookie Woes
At 02:29 PM 08/27/2001 -0600, you wrote: we have an application which uses a custom tag at the start of each template. This tag checks session variables against the required access level for the page and if need be, redirects to the login page. We are finding that Netscape refuses to run this tag (it hangs trying to load the page) if we delete the cookies file. Did you close and re-start netscape after deleting the cookie file? Could the problems be due to Navigator not having the cookie file? (Isn't this an overkill use for a custom tag, why not just drop the two / three lines of code into the Application.cfm ? ) -- Jeffry Houser | mailto:[EMAIL PROTECTED] AIM: Reboog711 | ICQ: 5246969 | Phone: 860-229-2781 -- I'm looking for a room-mate in the Hartford CT area, starting in August -- Instant ColdFusion 5.0 | ISBN: 0-07-213238-8 http://www.instantcoldfusion.com -- DotComIt, LLC database driven web data using ColdFusion, Lotus Notes/Domino -- Far Cry Fly, Alternative Folk Rock http://www.farcryfly.com | http://www.mp3.com/FarCryFly -- Change is good ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm 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: Netscape Cookie Woes
Found the problem. One of our developers added some code that refered to the Cookie before the cookie was initialized with a cfparam tag. CF should have thrown an error, but instead just hung trying to load the page. Moved our cfparam block before the first call, and our problem went away. That was a frustrating hour or so finding that... Shawn Grover -Original Message- From: Costas Piliotis [mailto:[EMAIL PROTECTED]] Sent: Monday, August 27, 2001 3:04 PM To: CF-Talk Subject: RE: Netscape Cookie Woes As far as I understandm session state is maintained through a cookie. CFID and CFTOKEN are stored as cookie values. The session state is destroyed when you destroy the cookies file. A new session is thus started and all of your session variables are lost. -Original Message- From: Shawn Grover [mailto:[EMAIL PROTECTED]] Sent: Monday, August 27, 2001 1:30 PM To: CF-Talk Subject: Netscape Cookie Woes we have an application which uses a custom tag at the start of each template. This tag checks session variables against the required access level for the page and if need be, redirects to the login page. We are finding that Netscape refuses to run this tag (it hangs trying to load the page) if we delete the cookies file. That's really weird because the tag doesn't refer to the cookies. The Login page does use a cookie for populating the username text box, but that's it. Otherwise, we don't use cookies. (except system session cookies). I know we aren't even making it to the login page because of troubleshooting code/output I've inserted into the routines. Anyone see this before? or have an idea how to fix it? Thanks. Shawn Grover ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm 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: Netscape Cookie Woes
Thanks for the response. The security check is a bit more comprehensive than a simple comparison of vairables - we do some data access/logging as well. Putting the routine in application.cfm would also affect the login page so would require some additional logic to have it NOT run when viewing the login/logout pages. Doing this as a custom tag made life a bit easier for us in terms of troubleshooting and such. Thanks for the comments though. (we did get the problem resolved - see my previous post). Shawn Grover -Original Message- From: Jeffry Houser [mailto:[EMAIL PROTECTED]] Sent: Monday, August 27, 2001 6:12 PM To: CF-Talk Subject: Re: Netscape Cookie Woes At 02:29 PM 08/27/2001 -0600, you wrote: we have an application which uses a custom tag at the start of each template. This tag checks session variables against the required access level for the page and if need be, redirects to the login page. We are finding that Netscape refuses to run this tag (it hangs trying to load the page) if we delete the cookies file. Did you close and re-start netscape after deleting the cookie file? Could the problems be due to Navigator not having the cookie file? (Isn't this an overkill use for a custom tag, why not just drop the two / three lines of code into the Application.cfm ? ) -- Jeffry Houser | mailto:[EMAIL PROTECTED] AIM: Reboog711 | ICQ: 5246969 | Phone: 860-229-2781 -- I'm looking for a room-mate in the Hartford CT area, starting in August -- Instant ColdFusion 5.0 | ISBN: 0-07-213238-8 http://www.instantcoldfusion.com -- DotComIt, LLC database driven web data using ColdFusion, Lotus Notes/Domino -- Far Cry Fly, Alternative Folk Rock http://www.farcryfly.com | http://www.mp3.com/FarCryFly -- Change is good ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm 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: Netscape Cookie Woes
At 03:53 PM 08/27/2001 -0600, you wrote: Thanks for the response. The security check is a bit more comprehensive than a simple comparison of vairables - we do some data access/logging as well. ;) Putting the routine in application.cfm would also affect the login page so would require some additional logic to have it NOT run when viewing the login/logout pages. In cases like this (without your custom tag, I mean) I would use separate Application.cfm for the root directory and the main subdirectories. I'm not sure who I'm preaching to at the moment though, since you got your problem fixed. -- Jeffry Houser | mailto:[EMAIL PROTECTED] AIM: Reboog711 | ICQ: 5246969 | Phone: 860-229-2781 -- I'm looking for a room-mate in the Hartford CT area, starting in August -- Instant ColdFusion 5.0 | ISBN: 0-07-213238-8 http://www.instantcoldfusion.com -- DotComIt, LLC database driven web data using ColdFusion, Lotus Notes/Domino -- Far Cry Fly, Alternative Folk Rock http://www.farcryfly.com | http://www.mp3.com/FarCryFly -- Change is good ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm 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