RE: Configuring Apache to run Cold Fusion files
I am running Apache 2.0.48 for Windows and this is how I configured it to run CFML. I went into the CFUSIONMX\bin\connectors\ folder and EDITED the apache_connector.bat file to correctly point to the install folder for Apache to something like this: @echo off echo WARNING!This will install the ColdFusion MX Apache Connector. echo Press Control+C to abort. pause SETLOCAL PATH=..\..\runtime\jre\bin;%PATH% java -jar ..\..\runtime\lib\wsconfig.jar-ws apache -dir c:\program files\apache group\apache2\conf -map .cfm,.cfc,.cfml -coldfusion -v ENDLOCAL pause I saved it and then executed the batch file - made a test index.cfm file for the htdocs folder and BINGO it worked! I then copied a copy of a site I was building under CFMX into the httpd folder to test and it also worked. So now I have CFMX with it's built-in server, Apache and BlueDragon MX 6.1B2 to test my apps under. Peter Tilbrook ColdFusion Applications Developer ColdGen Internet Solutions Manager, ACT and Region ColdFusion Users Group - http://www.actcfug.com 4/73 Tharwa Road Queanbeyan, NSW, 2620 AUSTRALIA Telephone: +61-2-6284-2727 Mobile: +61-0439-401-823 My wife says I never listen to her... At least I think that's what she said! \¯\/¯/ |¯|)¯) /¯/\¯\ \¯\/¯/ /_/\_\ |_|)_) \_\/_/ /_/\_\ RULES -Original Message- From: Scott Williams [mailto:[EMAIL PROTECTED] Sent: Saturday, 17 January 2004 4:43 PM To: CF-Talk Subject: Configuring Apache to run Cold Fusion files Hi all, Can anyone remember how to configure Apache to handle Cold Fusion files? Scott __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
BlueDragon 6.1B2 issues
Am getting this error: Type Template Message Missing start tag Tag /CFHTTP Position Line=24; Column=53 Detail The tag /cfhttp had no corresponding opening tag Source 21: URLToPull= http://www.easycfm.com/syndication/EasyFeed.xml; 22: /cfscript 23: 24: cfhttp url="" method=GET timeout=15/cfhttp With the line of code above. And also this error: Type Invalid Class Tag Context CFSET: Line=13; Column=1 Detail createObject() Extended Info Source 10: /cfif 11: 12: !--- Track current site users --- 13: cfset Tracker=CreateObject(java, coldfusion.runtime.SessionTracker) 14: cfset Sessions=Tracker.GetSessionCollection(Application.ApplicationName) Any ideas? Peter Tilbrook ColdFusion Applications Developer ColdGen Internet Solutions Manager, ACT and Region ColdFusion Users Group - http://www.actcfug.com 4/73 Tharwa Road Queanbeyan, NSW, 2620 AUSTRALIA Telephone: +61-2-6284-2727 Mobile: +61-0439-401-823 My wife says I never listen to her... At least I think that's what she said! \¯\/¯/ |¯|)¯) /¯/\¯\ \¯\/¯/ /_/\_\ |_|)_) \_\/_/ /_/\_\ RULES [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: StructFindKey - what's really possible?
Hi I guess reading the docs would have helped to keep my foot out of my mouth there... Given what is says it ought to be able to do what you want as long as the thing you are passing in is a Struct; it does not accept Arrays directly. A quick test confirmed that. You can just assign your array to a field in a new Struct and you'll be able to search it that way though. Yup, that works. (cf5) Mark -Original Message- From: Susan McNab [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 7:10 PM To: CF-Talk Subject: Re: StructFindKey - what's really possible? Mark, Thanks. What do you mean when you say array?I am reading the docs for StructKeyFind to mean that if a Struct contains another struct then it will dive into that too, but it doesn't say it will scan Arrays. What you say makes sense but are we reading the same CFDocs? Originally I thought StructFindKey was just for structures too. Then I looked at the MX CFDocs and they specifically say Structure or Array in several places and that they can be nested. Maybe that means one or the other but not mixed? Here's another quote: Searches recursively through a substructure of nested arrays, structures, and other elements I am not so much interested in getting a solution to a specific coding issue. I don't think I am understanding the CFDocs clearly. I wondered if anyone else has been through this and come up with a concise summary of StructFindKey behavior. At any rate, if you describe your data structure more clearly then you'll be more likely to get an accurate answer. The data structure is similar to the example I provided, except that the stuct keys are well formed and the data is not such a regular pattern. (I was tired when I knocked that up...don't know what I was thinking!) It groups together a structure of summary details (aArray[n][1]) with varying numbers of line items (aArray[n][2,3,4,...n]) each of which holds a structure. Here's an abbreviated representation: a2DArray[1][1].iQuoteID [1].sDescription [1].iDiscountRate [1].iAction a2DArray[1][2].iQuoteRowID [2].sItemDescription [2].iQuantity [2].iChargePropertyID [2].iAction a2DArray[1][3].iQuoteRowID [3].sItemDescription [3].iQuantity [3].iChargePropertyID [3].iAction a2DArray[2][1].iQuoteID [1].sDescription [1].iDiscountRate [1].iAction a2DArray[2][2].iQuoteRowID [2].sItemDescription [2].iQuantity [2].iChargePropertyID [2].iAction Rgds Sue _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: BlueDragon 6.1B2 issues
Hi Peter, For the first one, if you remove the closing /cfhttp tag it will remove the error (the closing /cfhttp tag is unnecessary; if you remove it your code is still compatible with CF5/MX). This issue is documented in the BlueDragon CFML Compatibility Guide: BlueDragon does not support closing tags for tags that do not normally have a tag body. For this reason, BlueDragon does not support the optional use of a closing /CFHTTP when using METHOD='Get'. BlueDragon does, however, support the use of a closing /CFHTTP when using METHOD='POST'. For the second one, you're trying to create an instance of a class, coldfusion.runtime.SessionTracker that is proprietary to CFMX and therefore doesn't exist in BlueDragon. If you can tell me what you're trying to accomplish, we'll see if we can figure out an equivalent way to do it in BlueDragon. Regards, Vince Bonfanti New Atlanta Communications, LLC http://www.newatlanta.com -Original Message- From: Peter Tilbrook [mailto:[EMAIL PROTECTED] Sent: Saturday, January 17, 2004 6:26 AM To: CF-Talk Subject: BlueDragon 6.1B2 issues Am getting this error: Type Template Message Missing start tag Tag /CFHTTP Position Line=24; Column=53 Detail The tag /cfhttp had no corresponding opening tag Source 21: URLToPull= http://www.easycfm.com/syndication/EasyFeed.xml; 22: /cfscript 23: 24: cfhttp url="" method=GET timeout=15/cfhttp With the line of code above. And also this error: Type Invalid Class Tag Context CFSET: Line=13; Column=1 Detail createObject() Extended Info Source 10: /cfif 11: 12: !--- Track current site users --- 13: cfset Tracker=CreateObject(java, coldfusion.runtime.SessionTracker) 14: cfset Sessions=Tracker.GetSessionCollection(Application.ApplicationName) Any ideas? Peter Tilbrook ColdFusion Applications Developer ColdGen Internet Solutions Manager, ACT and Region ColdFusion Users Group - http://www.actcfug.com 4/73 Tharwa Road Queanbeyan, NSW, 2620 AUSTRALIA Telephone: +61-2-6284-2727 Mobile: +61-0439-401-823 My wife says I never listen to her... At least I think that's what she said! \¯\/¯/ |¯|)¯) /¯/\¯\ \¯\/¯/ /_/\_\ |_|)_) \_\/_/ /_/\_\ RULES [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: BLueDragon
Hi Rick, You might want to post this question to the BlueDragon-Interest mailing list, since that's where most BlueDragon users gather: http://www.newatlanta.com/products/bluedragon/self_help/archive_search/index .cfm Also, be sure to ask about BlueDragon's advantages compared to CF5/CFMX as well as its faults. :-) Cheers, Vince Bonfanti New Atlanta Communications, LLC http://www.newatlanta.com -Original Message- From: cfhelp [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 2:45 PM To: CF-Talk Subject: BLueDragon I am looking at BlueDragon Server JX and wanted to here what everyone thinks about it. What are its faults Compared to CF5/CFMX? Thank you Rick [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
cfqueryparam using list attribute NOT IN
What is the correct syntax for cfqueryparam using the list attribute and NOT IN AND g.GenreParentDescription NOT IN cfqueryparam value=MENU,Genres cfsqltype=CF_SQL_VARCHAR list=Yes Thank you, Stan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: cfqueryparam using list attribute NOT IN
You missed the braces: AND g.GenreParentDescription NOT IN (cfqueryparam value=MENU,Genres cfsqltype=CF_SQL_VARCHAR list=Yes) Marius Milosav www.scorpiosoft.com It's not about technology, it's about people. Virtual Company (VICO) Application Demo www.scorpiosoft.com/vicodemo/login.cfm - Original Message - From: Stan Winchester [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Saturday, January 17, 2004 11:29 AM Subject: cfqueryparam using list attribute NOT IN What is the correct syntax for cfqueryparam using the list attribute and NOT IN AND g.GenreParentDescription NOT IN cfqueryparam value=MENU,Genres cfsqltype=CF_SQL_VARCHAR list=Yes Thank you, Stan [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re:cfqueryparam using list attribute NOT IN
Marius, Thanks for catching my oversite! Stan You missed the braces: AND g.GenreParentDescription NOT IN (cfqueryparam value=MENU,Genres cfsqltype=CF_SQL_VARCHAR list=Yes) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: session management help please
As there is no responce to my original question, am i to determine that this either can not be done, or it is just that nobody on this list knows the answer? Rino From: Seth Skager [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: session management help please Date: Tue, 13 Jan 2004 20:30:34 -0800 (PST) I'm writing my first application. I will be useing a secure section on my site you need to login to. I can set up a logout linkto end a session. I can end a session if the user closes the browser. my question is, is there a way to kill or end the session if the user navigates outside of my domain? For example, a user is logged in on my site and clicks his home button. Is there a way to end the session at that point? thanx; Rinopod __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: session management help please
No way that I know of At 01:14 PM 1/17/2004, you wrote: As there is no responce to my original question, am i to determine that this either can not be done, or it is just that nobody on this list knows the answer? Rino From: Seth Skager [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: session management help please Date: Tue, 13 Jan 2004 20:30:34 -0800 (PST) I'm writing my first application. I will be useing a secure section on my site you need to login to. I can set up a logout linkto end a session. I can end a session if the user closes the browser. my question is, is there a way to kill or end the session if the user navigates outside of my domain? For example, a user is logged in on my site and clicks his home button. Is there a way to end the session at that point? thanx; Rinopod __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus -- [ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: session management help please
If the user is using the same browser window, use the OnUnload function of JS to check if the location is not within your domain. If so, close the session. - Original Message - From: NANCY SKAGER To: CF-Talk Sent: Saturday, January 17, 2004 1:14 PM Subject: RE: session management help please As there is no responce to my original question, am i to determine that this either can not be done, or it is just that nobody on this list knows the answer? Rino From: Seth Skager [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: session management help please Date: Tue, 13 Jan 2004 20:30:34 -0800 (PST) I'm writing my first application. I will be useing a secure section on my site you need to login to. I can set up a logout linkto end a session. I can end a session if the user closes the browser. my question is, is there a way to kill or end the session if the user navigates outside of my domain? For example, a user is logged in on my site and clicks his home button. Is there a way to end the session at that point? thanx; Rinopod __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: session management help please
NANCY SKAGER wrote: As there is no responce to my original question, am i to determine that this either can not be done, or it is just that nobody on this list knows the answer? It can not be done reliably. It would require sending a message from the browser to the server the moment the browser navigates away. But the browser is under control from the visitor, not from you. Jochem -- I don't get it immigrants don't work and steal our jobs - Loesje [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: session management help please
Nevermind answered too soon. If there was a way to determine where the user was going, you could using the OnUnload event however not sure you can determine that. - Original Message - From: ColdFusion To: CF-Talk Sent: Saturday, January 17, 2004 1:35 PM Subject: Re: session management help please If the user is using the same browser window, use the OnUnload function of JS to check if the location is not within your domain. If so, close the session. - Original Message - From: NANCY SKAGER To: CF-Talk Sent: Saturday, January 17, 2004 1:14 PM Subject: RE: session management help please As there is no responce to my original question, am i to determine that this either can not be done, or it is just that nobody on this list knows the answer? Rino From: Seth Skager [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: session management help please Date: Tue, 13 Jan 2004 20:30:34 -0800 (PST) I'm writing my first application. I will be useing a secure section on my site you need to login to. I can set up a logout linkto end a session. I can end a session if the user closes the browser. my question is, is there a way to kill or end the session if the user navigates outside of my domain? For example, a user is logged in on my site and clicks his home button. Is there a way to end the session at that point? thanx; Rinopod __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: session management help please
Thank you so much... I thought that this was going to be the only way to pull this off. I guess at any rate I can add this to the macormedia wish list for the next version of coldfusion. Macormedia really needs to add a new and better tags for session management. ROFLMAO... If I was a better programmer at c or java, I'ld write my own custom tag to handle this and make lots of $$$! But for now I see that clodfusion can not do this so I need to crack open my dust covered JS books! Thanks for all your help; Rino From: ColdFusion [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: Re: session management help please Date: Sat, 17 Jan 2004 13:35:19 -0500 If the user is using the same browser window, use the OnUnload function of JS to check if the location is not within your domain. If so, close the session. - Original Message - From: NANCY SKAGER To: CF-Talk Sent: Saturday, January 17, 2004 1:14 PM Subject: RE: session management help please As there is no responce to my original question, am i to determine that this either can not be done, or it is just that nobody on this list knows the answer? Rino From: Seth Skager [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: session management help please Date: Tue, 13 Jan 2004 20:30:34 -0800 (PST) I'm writing my first application. I will be useing a secure section on my site you need to login to. I can set up a logout linkto end a session. I can end a session if the user closes the browser. my question is, is there a way to kill or end the session if the user navigates outside of my domain? For example, a user is logged in on my site and clicks his home button. Is there a way to end the session at that point? thanx; Rinopod __ Do you Yahoo!? Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: session management help please
ColdFusion wrote: Nevermind answered too soon. If there was a way to determine where the user was going, you could using the OnUnload event however not sure you can determine that. Naturally I don't know about you, but the prefs.js configuration file of my Firebird profile has the following line: user_pref(capability.policy.default.Window.onunload,noAccess); This means that no onunload event gets fired ever, so your method would fail. Jochem -- I don't get it immigrants don't work and steal our jobs - Loesje [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
login management
On a similar topic to ongoing discussions... I have a few different areas of my site that I only want registered users to have access to. 1) I set up a session.allowed variable in my Application.cfm (defaulted to 0) if the variable isn't already present. Code: !--- set the default that a user has not been logged in --- cfif not isdefined(session.allowed) cflock name=setAllowed timeout=5 cfset session.allowed = 0 /cflock /cfif 2) I set up switches in the necessary pages to show a login include if the session.allowed var equalled 0. Code: cfif session.allowed eq 0 login:form actionpage=reservation.cfm cfelse What's Here? /cfif 3) I set up my check so that, if login was successful, the session.allowed var is set to 1. Code: cflock name=setAllowed timeout=5 cfset session.allowed = 1 /cflock After a user logs in I see, using debugging, that the var is now set to 1. But, when I go to another page (within the site), I see that the var is reset to 0. This shouldn't happen as the code in the App only sets to 0 if the var doesn't exist in the first place (see item 1 above for code). Anyone have any ideas? Cutter [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: session management help please
NANCY SKAGER wrote: Thank you so much... I thought that this was going to be the only way to pull this off. I guess at any rate I can add this to the macormedia wish list for the next version of coldfusion. Macormedia really needs to add a new and better tags for session management. IMHO, requesting client side features for ColdFusion does not make sense. But for now I see that clodfusion can not do this so I need to crack open my dust covered JS books! Which will not help you either. The visitor is in control. The visitor decides (through his browser policy) which event get sent back to the server. The choice whether a request should be send back to the server on event X is simply not up to the server. That is the way it works, and that is the way it should work. Jochem -- I don't get it immigrants don't work and steal our jobs - Loesje [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: session management help please
I'm wondering why Nancy wants to end session variables in the way she describes. Perhaps there are other ways of achieving her goal. For example, perhaps a clunky one, she could set very short lived session variables and refresh them on each page request for another very short period of time. When the visitor leaves her site, the session will end shortly thereafter. - Regards, Bob Haroche O n P o i n tS o l u t i o n s www.OnPointSolutions.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: session management help please
Great points Jochem, as always. Although this is no answer, I think this is part of the greater issues we hit sometimes when trying to take web browser based development beyond where it can comfortably go.In my mind we are hitting the ceiling of what can be done in a browser in many ways.Luckily Macromedia realize this, Central is a reflection of this IMHO. Kind Regards - Mike Brunt Webapper Services LLC Web Site http://www.webapper.com Blog http://www.webapper.net Webapper Web Application Specialists -Original Message- From: Jochem van Dieten [mailto:[EMAIL PROTECTED] Sent: Saturday, January 17, 2004 11:42 AM To: CF-Talk Subject: Re: session management help please NANCY SKAGER wrote: Thank you so much... I thought that this was going to be the only way to pull this off. I guess at any rate I can add this to the macormedia wish list for the next version of coldfusion. Macormedia really needs to add a new and better tags for session management. IMHO, requesting client side features for ColdFusion does not make sense. But for now I see that clodfusion can not do this so I need to crack open my dust covered JS books! Which will not help you either. The visitor is in control. The visitor decides (through his browser policy) which event get sent back to the server. The choice whether a request should be send back to the server on event X is simply not up to the server. That is the way it works, and that is the way it should work. Jochem -- I don't get it immigrants don't work and steal our jobs - Loesje _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: session management help please
I'm writing my first application. I will be useing a secure section on my site you need to login to. I can set up a logout linkto end a session. I can end a session if the user closes the browser. my question is, is there a way to kill or end the session if the user navigates outside of my domain? For example, a user is logged in on my site and clicks his home button. Is there a way to end the session at that point? As there is no responce to my original question, am i to determine that this either can not be done, or it is just that nobody on this list knows the answer? As Jochem pointed out, you can not do this reliably with web applications. This has nothing to do with ColdFusion, per se, but rather with the very nature of HTTP. You can implement a client-side solution using _javascript_, but you can't guarantee that it will work in all cases, and if your goal is security, it would probably have to work in all cases to be effective. Why exactly do you want to log the user out if she goes to a different page, anyway? What if the user clicks the home button by mistake? For most applications, it's sufficient to ensure that the session is disconnected when the user closes her browser. You can do this by creating session cookies which are destroyed when the browser is closed. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Configuring Apache to run Cold Fusion files
Can anyone remember how to configure Apache to handle Cold Fusion files? What version of Apache and CF are you using? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Encrypted Tags not working on MX?
Okay, I'm confused. I'm using an encrypted custom tag for a calendar popup and it runs fine on my development environment version of CFMX 6.1, however I just moved it to the hosting server and rather than processing the encrypted CF file, it's just outputting the contents of the encrypted file. If you're using FTP, try recopying the file in binary mode. What happens if you request the custom tag directly via the browser? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ phone: 202-797-5496 fax: 202-797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
html to image
Apologies if this has been covered before, but I couldn't find anything in the archives. My problem is that I need to convert a webpage, it's a coldfusion generated stats page on a server, into an image (jpg, gif etc). This is so that I can view the server status from my TV via tivo. I've managed to do something crude using the cfx image tag but if I could capture the whole page and convert the html to an image I would be really happy. Any thoughts ? Cheers Richard [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Remember Me
How would you implement a typical Remember Me login? I have little experience using cookies, generally taking the easy way and implementing client and session management through CF's application framework. Seems to me that if I enable client management in CF, then _everyone_ that logs in to a web site will be remembered.So how to implement selectively rememembering only the users who check off Remember Me when they log in? Second question - is it possible to have a cross-domain login?That is, if a user logs in and has a CF session at http://www.mydomain.com and then clicks over to my other web site at http://www.mydomain2.com, is there a way to seemlessly keep the same session?Can this be done if cfid/cftoken are passed explicitly?Can it be done using cookies? Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Remember Me
Jim McAtee wrote: Second question - is it possible to have a cross-domain login?That is, if a user logs in and has a CF session at http://www.mydomain.com and then clicks over to my other web site at http://www.mydomain2.com, is there a way to seemlessly keep the same session?Can this be done if cfid/cftoken are passed explicitly?Can it be done using cookies? You can either explicitly pass cfid/cftoken or use HTTP Digest Authentication. Jochem -- I don't get it immigrants don't work and steal our jobs - Loesje [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Remember Me
Jim, Here's how I do that: First of all, the user checks a box that says remember me on my next visit.This checkbox is then tested for when I eval the form post.If the user requested remembrance, then cfcookie expires=NEVER name=TheField VALUE=#form.TheField# Where 'form.thefield' is also the form field name on the form itself. Next, when they come back to the form the field has this code in it: cfif isdefined (cookie.TheField) cfset variables.ThisValue=cookie.TheField cfelse cfset variables.ThisValue= /cfif input type=Text name=TheField size=35 maxlength=50 value=#variables.ThisValue# As to the second part of your question, there is a 'domain' attribute to cfcookie.I've never used it, but I wonder if specifying the domain you want in each would solve your second problem. Can't say that using cookies for storing login data gives me a warm fuzzy glow.I'd only do it if I had to and the client signed off on it. HtH, Matt Robertson [EMAIL PROTECTED] MSB Designs, Inc.http://mysecretbase.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Remember Me
A persistent cookie (set with CFCOOKIE with an expiry) will handle your remember folks.So if they check the box then you set their session cookie with an expiry.If they don't check the box then set the cookie (non-persistent...in memory only and destroyed when browser closed) without the expiry (don't even use the expiry attribute in CFCOOKIE). That's the brute force of it.There is some fine tuning ...for example handling the cookie if someone changes their mind and no longer wants to be remebered you'll have to toast the persistent cookie and then set a non-persistent one.Beware of setting a cookie and then using CFLOCATION (cookie won't get set...will need a cfcontent/cfheader workaround). HTH Cheers Bryan Stevenson B.Comm. VP Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] - Macromedia Associate Partner www.macromedia.com - Vancouver Island ColdFusion Users Group Founder Director www.cfug-vancouverisland.com - Original Message - From: Jim McAtee To: CF-Talk Sent: Saturday, January 17, 2004 2:08 PM Subject: Remember Me How would you implement a typical Remember Me login? I have little experience using cookies, generally taking the easy way and implementing client and session management through CF's application framework. Seems to me that if I enable client management in CF, then _everyone_ that logs in to a web site will be remembered.So how to implement selectively rememembering only the users who check off Remember Me when they log in? Second question - is it possible to have a cross-domain login?That is, if a user logs in and has a CF session at http://www.mydomain.com and then clicks over to my other web site at http://www.mydomain2.com, is there a way to seemlessly keep the same session?Can this be done if cfid/cftoken are passed explicitly?Can it be done using cookies? Thanks. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: session management help please
the reason I would like to end sessions in thos way is the fact that a certain page on the site will have a chatroom on it. A user can spend a unknown amount of time there, then either surf to other sections of the site, of surf somewhere else. if the person does leave the site and then returns, I want them to have to sign in again. This is of course for reasons of security. I also will be adding a include file that that tells the number of active sessions out of the number of registered users. It will also include a link to see who is online. As you can see it will be wise to be albe to end a session if a user surfs away form the site. Any thoughts on this? thanks; Rino From: Bob Haroche [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Subject: Re: session management help please Date: Sat, 17 Jan 2004 12:33:46 -0800 I'm wondering why Nancy wants to end session variables in the way she describes. Perhaps there are other ways of achieving her goal. For example, perhaps a clunky one, she could set very short lived session variables and refresh them on each page request for another very short period of time. When the visitor leaves her site, the session will end shortly thereafter. - Regards, Bob Haroche O n P o i n tS o l u t i o n s www.OnPointSolutions.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: Remember Me
- Original Message - From: Bryan Stevenson [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Saturday, January 17, 2004 3:51 PM Subject: Re: Remember Me A persistent cookie (set with CFCOOKIE with an expiry) will handle your remember folks.So if they check the box then you set their session cookie with an expiry. If they don't check the box then set the cookie (non-persistent...in memory only and destroyed when browser closed) without the expiry (don't even use the expiry attribute in CFCOOKIE). That's the brute force of it.There is some fine tuning ...for example handling the cookie if someone changes their mind and no longer wants to be remebered you'll have to toast the persistent cookie and then set a non-persistent one.Beware of setting a cookie and then using CFLOCATION (cookie won't get set...will need a cfcontent/cfheader workaround). Thanks.So it sounds like my thinking that this couldn't be accomplished only through CF client managment is correct. Why not just use the cookie in conjunction with a CF-managed session?Use the cookie to note who the returning visitor is, then look up their user record in a database and establish a new CF session, same as if they'd gone through a login form? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: login management
Not sure but you may consider a usertype schema -Original Message- From: Cutter (CF-Talk) [mailto:[EMAIL PROTECTED] Sent: Saturday, January 17, 2004 12:42 PM To: CF-Talk Subject: login management On a similar topic to ongoing discussions... I have a few different areas of my site that I only want registered users to have access to. 1) I set up a session.allowed variable in my Application.cfm (defaulted to 0) if the variable isn't already present. Code: !--- set the default that a user has not been logged in --- cfif not isdefined(session.allowed) cflock name=setAllowed timeout=5 cfset session.allowed = 0 /cflock /cfif 2) I set up switches in the necessary pages to show a login include if the session.allowed var equalled 0. Code: cfif session.allowed eq 0 login:form actionpage=reservation.cfm cfelse What's Here? /cfif 3) I set up my check so that, if login was successful, the session.allowed var is set to 1. Code: cflock name=setAllowed timeout=5 cfset session.allowed = 1 /cflock After a user logs in I see, using debugging, that the var is now set to 1. But, when I go to another page (within the site), I see that the var is reset to 0. This shouldn't happen as the code in the App only sets to 0 if the var doesn't exist in the first place (see item 1 above for code). Anyone have any ideas? Cutter [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: Remember Me
Jim McAtee wrote Why not just use the cookie in conjunction with a CF-managed session? Use the cookie to note who the returning visitor is, then look up their user record in a database and establish a new CF session, same as if they'd gone through a login form? Sure.Easy. cfif isdefined(cookie.foo) ... Take the cookie val, validate it and use it ... /cfif Matt Robertson [EMAIL PROTECTED] MSB Designs, Inc.http://mysecretbase.com [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: BlueDragon 6.1B2 issues
For the first one, if you remove the closing /cfhttp tag it will remove the error (the closing /cfhttp tag is unnecessary; if you remove it your code is still compatible with CF5/MX). This issue is documented in the BlueDragon CFML Compatibility Guide: BlueDragon does not support closing tags for tags that do not normally have a tag body. For this reason, BlueDragon does not support the optional use of a closing /CFHTTP when using METHOD='Get'. BlueDragon does, however, support the use of a closing /CFHTTP when using METHOD='POST'. Bingo! That worked! For the second one, you're trying to create an instance of a class, coldfusion.runtime.SessionTracker that is proprietary to CFMX and therefore doesn't exist in BlueDragon. If you can tell me what you're trying to accomplish, we'll see if we can figure out an equivalent way to do it in BlueDragon. Just trying to keep track of the number of sessions the application is maintaining (eg: 5 users are currently logged on). Thanks for the help. Peter Tilbrook ColdFusion Applications Developer ColdGen Internet Solutions Manager, ACT and Region ColdFusion Users Group - http://www.actcfug.com 4/73 Tharwa Road Queanbeyan, NSW, 2620 AUSTRALIA Telephone: +61-2-6284-2727 Mobile: +61-0439-401-823 My wife says I never listen to her... At least I think that's what she said! \¯\/¯/ |¯|)¯) /¯/\¯\ \¯\/¯/ /_/\_\ |_|)_) \_\/_/ /_/\_\ RULES [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]