Application.cfm, Session Management, and a lot less hair!
Good Morning (Evening) Everyone, Okay this problem has me completely baffled. We have an administration module for a client with a login page that sets some session permissions. Subsequent pages then look for the appropriate permission using CFApplication. Everything works fine on our end but when we implemented on the client site they cannot get into the administration module...very secure but useless! ;-) I have supplied the error they are getting and the CFApplication tag. The only way I have been able to replicate the error is by disabling the browser's ability to accept cookies on our internal network. This then causes Cold Fusion to throw the error. I have tried it on a number of different machines that we test on and the Cold Fusion application worked on all of them. However, when I try the application on some machines external to our network they almost always fail but some do allow access to the administrator module. They have been set to accept cookies so that doesn't seem to be the problem. It is the intermittent nature of this problem that is causing me the most trouble in trying to solve it. Please note that we have never had a problem from our development machines. If anyone has any input on this problem I would really appreciate hearing from you... Ken Ken McInnes e-Business Architect CSystems Consulting 1021 B 18th Street South Lethbridge, ABCanada T1K 2A2 Email: [EMAIL PROTECTED] Web Site: http://www.csystems.ab.ca (temporarily unavailable) Phone: 403.394.5116 Fax:403.381.6868 ~~ 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
Application.cfm, Session Management...More Info.
Sorry Everyone, I had trouble posting to the list at first and some of the message got stripped when I did the ole cut and paste... Here is the error message and the application.cfm. No they are not going through a proxy and the Cold Fusion pages are being hosted in a shared environment (just to make things interesting). I'm not sure if I was clear in my first message but the application works from our various developers' machines that we use for testing browsers, etc. The client is using IE 5 (build 5.00.292) In fact this has only popped up on this particular site. I believe the obvious problem is that the session variable has not been created but it works on other machines so that's what has me puzzled. Anyhow I look forward to your informed comments... Thanks, Ken Here is the error: Error resolving parameter SESSION.PERMISSIONS The session variable PERMISSIONS does not exist. The cause of this error is very likely one of the following things: 1.The name of the session variable has been misspelled. 2.The session variable has not yet been created. 3.The session variable has timed out. CFAPPLICATION Name="SomeName" SessionManagement="Yes" SessionTimeout="#CreateTimeSpan(0,0,15,0)#" Ken McInnes e-Business Architect CSystems Consulting 1021 B 18th Street South Lethbridge, ABCanada T1K 2A2 Email: [EMAIL PROTECTED] Web Site: http://www.csystems.ab.ca (temporarily unavailable) Phone: 403.394.5116 Fax:403.381.6868 ~~ 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: Application.cfm, Session Management, and a lot less hair!
HI Andy, Thanks that would be great...I had seen some code using tokens,etc. but I could not make it work!! Ken Ken McInnes e-Business Architect CSystems Consulting 1021 B 18th Street South Lethbridge, ABCanada T1K 2A2 Email: [EMAIL PROTECTED] Web Site: http://www.csystems.ab.ca (temporarily unavailable) Phone: 403.394.5116 Fax:403.381.6868 -Original Message- From: Andy Ewings [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 7:57 AM To: CF-Talk Subject: RE: Application.cfm, Session Management, and a lot less hair! Are you locking the seesion variables?...a test would be to switch to client variables and see if you still hget the same problem. Incedentally. If you want to maintain sessions regardless of whether the user has session level cookies swithched on or off then I'll post a bit of code which you stick in your application.cfm that will solve this. -- Andrew Ewings Project Manager Thoughtbubble Ltd http://www.thoughtbubble.net -- United Kingdom http://www.thoughtbubble.co.uk/ Tel: +44 (0) 20 7387 8890 -- New Zealand http://www.thoughtbubble.co.nz/ Tel: +64 (0) 9 488 9131 -- The information in this email and in any attachments is confidential and intended solely for the attention and use of the named addressee(s). Any views or opinions presented are solely those of the author and do not necessarily represent those of Thoughtbubble. This information may be subject to legal, professional or other privilege and further distribution of it is strictly prohibited without our authority. If you are not the intended recipient, you are not authorised to disclose, copy, distribute, or retain this message. Please notify us on +44 (0)207 387 8890. -Original Message- From: Ken McInnes [mailto:[EMAIL PROTECTED]] Sent: 16 February 2001 14:58 To: CF-Talk Subject: Application.cfm, Session Management, and a lot less hair! Good Morning (Evening) Everyone, Okay this problem has me completely baffled. We have an administration module for a client with a login page that sets some session permissions. Subsequent pages then look for the appropriate permission using CFApplication. Everything works fine on our end but when we implemented on the client site they cannot get into the administration module...very secure but useless! ;-) I have supplied the error they are getting and the CFApplication tag. The only way I have been able to replicate the error is by disabling the browser's ability to accept cookies on our internal network. This then causes Cold Fusion to throw the error. I have tried it on a number of different machines that we test on and the Cold Fusion application worked on all of them. However, when I try the application on some machines external to our network they almost always fail but some do allow access to the administrator module. They have been set to accept cookies so that doesn't seem to be the problem. It is the intermittent nature of this problem that is causing me the most trouble in trying to solve it. Please note that we have never had a problem from our development machines. If anyone has any input on this problem I would really appreciate hearing from you... Ken Ken McInnes e-Business Architect CSystems Consulting 1021 B 18th Street South Lethbridge, ABCanada T1K 2A2 Email: [EMAIL PROTECTED] Web Site: http://www.csystems.ab.ca (temporarily unavailable) Phone: 403.394.5116 Fax:403.381.6868 ~~ 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