Re: cfapplication question
Also, you are asking the application to reload every 5 minutes. If I remember, domain cookies are for clusters and store all of the client variables there. That sounds like a lot of overhead of storing all of the data into cookies. Teddy On 10/6/06, Teddy Payne <[EMAIL PROTECTED]> wrote: > > Have you tried converting this to application.cfc? > > Teddy > > On 10/6/06, Jacob <[EMAIL PROTECTED] > wrote: > > > > Any idea why this would be slow in 7.0.1 HF2? > > > > > clientmanagement="YES" > > applicationtimeout=#createtimespan(0,0,5,0)# > > setdomaincookies="Yes"> > > > > and not in 7.0.0? > > > > If I remove "setdomaincookies", then is runs normal. > > > > Thanks > > Jacob > > > > > > > > > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255828 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cfapplication question
Have you tried converting this to application.cfc? Teddy On 10/6/06, Jacob <[EMAIL PROTECTED]> wrote: > > Any idea why this would be slow in 7.0.1 HF2? > > clientmanagement="YES" > applicationtimeout=#createtimespan(0,0,5,0)# > setdomaincookies="Yes"> > > and not in 7.0.0? > > If I remove "setdomaincookies", then is runs normal. > > Thanks > Jacob > > > > > ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255826 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: CFAPPLICATION question
I've been to sites (actual physical sites not web sites) where applications have been developed with NO CFAPPLICATION name at all. This is very dangerous code wise, especially in an environment hosting multiple sites as variables can conflict. As far as I know you can get away with a single application not having the CFAPPLICATION name (read it somewhere) but that doesn't sound like good coding practise. I've done what you said once before on a site that was essentially broken in two (on the same domain) for standard HTTP and for secure sockets layer (HTTPS) and it worked a treat. Of course I tested it religiously and session vars were being correctly maintained as well as other state management. Also remember that CF will still search all the way to the server root for an Application.cfm file (unless MX6.1 has changed) so you could run into conflicts with other application variables (application, session, client, request, etc). 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 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFAPPLICATION question
Does anyone have a good breakdown of when is the best time to use different variable scopes. I know a lot of it is preference, but I'm curious if there's a best practices type idea floating around anywhere. John -Original Message- From: Gaulin, Mark [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 2:25 PM To: CF-Talk Subject: RE: CFAPPLICATION question If the two "domains" are just different hosts on the same domain ("abc.company.com" and "xyz.company.com") then you can arrange for the cf cookies to be shared, and so session would also be shared. It's the setdomaincookies option on cfapplication. (If you use it then you have to be careful to make sure the hosts more than one "dot" in the name... the host "company.com" will get no cf cookies at all if you have setdomaincookies=true) Mark -Original Message- From: Burns, John [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 1:56 PM To: CF-Talk Subject: CFAPPLICATION question I have a site in the webroot. In that site, I have an Application.cfm with a tag. On the same server, can I have a separate webroot with a separate Application.cfm with another tag with the same appname? Will it see these as the same application, thus allowing me to set some application variables, switch a user to the other domain and still have those application variables available? I'm not 100% sure how that works. Thanks for your input. John Burns _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFAPPLICATION question
If the two "domains" are just different hosts on the same domain ("abc.company.com" and "xyz.company.com") then you can arrange for the cf cookies to be shared, and so session would also be shared. It's the setdomaincookies option on cfapplication. (If you use it then you have to be careful to make sure the hosts more than one "dot" in the name... the host "company.com" will get no cf cookies at all if you have setdomaincookies=true) Mark -Original Message- From: Burns, John [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 1:56 PM To: CF-Talk Subject: CFAPPLICATION question I have a site in the webroot. In that site, I have an Application.cfm with a tag. On the same server, can I have a separate webroot with a separate Application.cfm with another tag with the same appname? Will it see these as the same application, thus allowing me to set some application variables, switch a user to the other domain and still have those application variables available? I'm not 100% sure how that works. Thanks for your input. John Burns _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFAPPLICATION question
> I have a site in the webroot. In that site, I have an > Application.cfm with a tag. > On the same server, can I have a separate webroot with a > separate Application.cfm with another > name="appname"> tag with the same appname? Yes. > Will it see these as the same application, thus allowing me > to set some application variables, switch a user to the other > domain and still have those application variables available? Yes, although you may have problems with session variables, if you're using separate domains for each application. 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: CFAPPLICATION question
Yes, they'll share application variables. Switching users between domains is a bit dicier, because client management is bound to domains (because cookies are). But if you're not using client or session management, or you're doing it with URL variables, then you should be fine. Cheers, barneyb > -Original Message- > From: Burns, John [mailto:[EMAIL PROTECTED] > Sent: Friday, February 27, 2004 10:56 AM > To: CF-Talk > Subject: CFAPPLICATION question > > I have a site in the webroot. In that site, I have an Application.cfm > with a tag. On the same server, can I > have a separate webroot with a separate Application.cfm with another > tag with the same appname? Will it see > these as the same application, thus allowing me to set some > application > variables, switch a user to the other domain and still have those > application variables available? I'm not 100% sure how that works. > Thanks for your input. > > John Burns > > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFAPPLICATION question
While they will both be the same Application to CF, you won't (I believe) be able to share session variables, since there will be a different cookie for each domain, unless you have domains like a.foo.com and b.foo.com (and use setDomainCookies). But you asked specifically about Application variables, and yes, they will be shared. [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFAPPLICATION question.
Steven, If I understand this correctly, as long as the parent Application.cfm (or other file containing the cfapplication tag) is included in the page request, it will keep from timing out. For example, given this structure... \parentapp\Application.cfm \parentapp\subapp\Application.cfm If the subapps Application.cfm file looks like this... Then you will be ok as long as you do not want to share variables. One word of caution though - I have noted that too many layers of files containing tags could cause performance hits. David Schmidt Ask not for whom the bell tolls... It tolls for thee. - Original Message - From: "Steven Durette" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, January 21, 2002 7:57 PM Subject: Re: CFAPPLICATION question. > Thanks for the info I think that it will really help out with what I'm > woking on. However, I don't think that I made myself clear... I don't ne > ed > to access any variables, I'm just worried that I'm going to get complaint > s > if the users have to keep logging in. I'm just wondering if the fact tha > t > they are clicking pages will keep the outer application from timing out. > > The particular applications that I am working on have seperate CFAPPLICAT > ION > tags in their own application.cfm's. Since they are already in one CFapp > , > is the second CFApp nested within the first? If they are nested, does th > at > mean that clicks (forms filled in, hyperlinks taken, etc.) will keep the > outer application from timing out? > > Thanks again, > > PS the answers given already just helped me solve a different problem I w > as > working on. > > Steve > - Original Message ----- > From: "Mark A. Kruger - CFG" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Monday, January 21, 2002 11:37 PM > Subject: RE: CFAPPLICATION question. > > > > Yeah - that's what I was implying > > > > -Original Message- > > From: Andrew Scott [mailto:[EMAIL PROTECTED]] > > Sent: Monday, January 21, 2002 6:07 PM > > To: CF-Talk > > Subject: RE: CFAPPLICATION question. > > > > > > Mark, > > > > If someone creates an application within an application, they don't nee > > application.cfm as CF will search backwards till it finds one. The only > > reason you would cfinclude a previous application.cfm is to make it par > t > > of the same original session for the user. > > > > But as you said If there is a different cfapplication used with a > > different name then you ende up with not being able to share variables > > scopes at all > > > > > > > > -Original Message- > > From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, 22 January 2002 2:54 PM > > To: CF-Talk > > Subject: RE: CFAPPLICATION question. > > > > Steve, > > > > In my experience, if they both have separate tags with > > separately named applications, you are actually dealing with 2 differen > t > > scopes - however if you are doing a cfinclude of the first > > application.cf > > m > > file in the second (sub) application.cfm file, and there is only one > > tag, they are sharing the same application scope. If > > you > > include an application.cfm file in the inner (sub) directory that does > > N > > OT > > have a cfapplication tag in it, you are NOT still in the prior > > applicatio > > n > > scope - instead you are without an application scope altogether (becaus > e > > there is no running). At least that is how I > > understand > > it. Someone else could perhaps shed a bit more light. > > > > mark > > > > > > -Original Message- > > From: Steven Durette [mailto:[EMAIL PROTECTED]] > > Sent: Monday, January 21, 2002 5:43 PM > > To: CF-Talk > > Subject: CFAPPLICATION question. > > > > > > Can answer this for me? Will users in a sub-application keep the outer > > application from timing out? > > > > Here is an example: > > > > I have a CF application that user log into an then have the option to > > log into a sub application. The sub application is actually in a > > subdirectory off of the main application. The outer application has a > > timeout of 10 minutes. The inner application also has a timeout of 10 > > minutes. While the users are clicking away in the sub-app are the > > clicks stopping the outer app from timing out or will the have to log > > back in after 10 minute
Re: CFAPPLICATION question.
Thanks for the info I think that it will really help out with what I'm woking on. However, I don't think that I made myself clear... I don't ne ed to access any variables, I'm just worried that I'm going to get complaint s if the users have to keep logging in. I'm just wondering if the fact tha t they are clicking pages will keep the outer application from timing out. The particular applications that I am working on have seperate CFAPPLICAT ION tags in their own application.cfm's. Since they are already in one CFapp , is the second CFApp nested within the first? If they are nested, does th at mean that clicks (forms filled in, hyperlinks taken, etc.) will keep the outer application from timing out? Thanks again, PS the answers given already just helped me solve a different problem I w as working on. Steve - Original Message - From: "Mark A. Kruger - CFG" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, January 21, 2002 11:37 PM Subject: RE: CFAPPLICATION question. > Yeah - that's what I was implying > > -Original Message- > From: Andrew Scott [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 21, 2002 6:07 PM > To: CF-Talk > Subject: RE: CFAPPLICATION question. > > > Mark, > > If someone creates an application within an application, they don't nee > application.cfm as CF will search backwards till it finds one. The only > reason you would cfinclude a previous application.cfm is to make it par t > of the same original session for the user. > > But as you said If there is a different cfapplication used with a > different name then you ende up with not being able to share variables > scopes at all > > > > -----Original Message- > From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 22 January 2002 2:54 PM > To: CF-Talk > Subject: RE: CFAPPLICATION question. > > Steve, > > In my experience, if they both have separate tags with > separately named applications, you are actually dealing with 2 differen t > scopes - however if you are doing a cfinclude of the first > application.cf > m > file in the second (sub) application.cfm file, and there is only one > tag, they are sharing the same application scope. If > you > include an application.cfm file in the inner (sub) directory that does > N > OT > have a cfapplication tag in it, you are NOT still in the prior > applicatio > n > scope - instead you are without an application scope altogether (becaus e > there is no running). At least that is how I > understand > it. Someone else could perhaps shed a bit more light. > > mark > > > -Original Message- > From: Steven Durette [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 21, 2002 5:43 PM > To: CF-Talk > Subject: CFAPPLICATION question. > > > Can answer this for me? Will users in a sub-application keep the outer > application from timing out? > > Here is an example: > > I have a CF application that user log into an then have the option to > log into a sub application. The sub application is actually in a > subdirectory off of the main application. The outer application has a > timeout of 10 minutes. The inner application also has a timeout of 10 > minutes. While the users are clicking away in the sub-app are the > clicks stopping the outer app from timing out or will the have to log > back in after 10 minutes are up and they finally decide to click the > link back to the main application? > > Thanks, > > Steve Durette > Database Administrator/Web Developer > Engineering & Construction Systems Support > SBC/Ameritech > > > > > > __ 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: CFAPPLICATION question.
Yeah - that's what I was implying -Original Message- From: Andrew Scott [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 6:07 PM To: CF-Talk Subject: RE: CFAPPLICATION question. Mark, If someone creates an application within an application, they don't nee application.cfm as CF will search backwards till it finds one. The only reason you would cfinclude a previous application.cfm is to make it part of the same original session for the user. But as you said If there is a different cfapplication used with a different name then you ende up with not being able to share variables scopes at all -Original Message- From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 22 January 2002 2:54 PM To: CF-Talk Subject: RE: CFAPPLICATION question. Steve, In my experience, if they both have separate tags with separately named applications, you are actually dealing with 2 different scopes - however if you are doing a cfinclude of the first application.cf m file in the second (sub) application.cfm file, and there is only one tag, they are sharing the same application scope. If you include an application.cfm file in the inner (sub) directory that does N OT have a cfapplication tag in it, you are NOT still in the prior applicatio n scope - instead you are without an application scope altogether (because there is no running). At least that is how I understand it. Someone else could perhaps shed a bit more light. mark -Original Message- From: Steven Durette [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 5:43 PM To: CF-Talk Subject: CFAPPLICATION question. Can answer this for me? Will users in a sub-application keep the outer application from timing out? Here is an example: I have a CF application that user log into an then have the option to log into a sub application. The sub application is actually in a subdirectory off of the main application. The outer application has a timeout of 10 minutes. The inner application also has a timeout of 10 minutes. While the users are clicking away in the sub-app are the clicks stopping the outer app from timing out or will the have to log back in after 10 minutes are up and they finally decide to click the link back to the main application? Thanks, Steve Durette Database Administrator/Web Developer Engineering & Construction Systems Support SBC/Ameritech __ 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: CFAPPLICATION question.
if you switch between two different tags, you can effectively go back and forth between multiple sets of session and application variables within the same request, allowing you to pull in some values from one app into another, like if you have an application.dsn that you want to use from one app in another related/sub-app. hurrah. now you have all three dsn or whatever. > -Original Message- > From: Andrew Scott [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 21, 2002 18:07 > To: CF-Talk > Subject: RE: CFAPPLICATION question. > > > Mark, > > If someone creates an application within an application, they > don't nee > application.cfm as CF will search backwards till it finds > one. The only > reason you would cfinclude a previous application.cfm is to > make it part > of the same original session for the user. > > But as you said If there is a different cfapplication used with a > different name then you ende up with not being able to share variables > scopes at all > > > > -Original Message- > From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 22 January 2002 2:54 PM > To: CF-Talk > Subject: RE: CFAPPLICATION question. > > Steve, > > In my experience, if they both have separate tags with > separately named applications, you are actually dealing with > 2 different > scopes - however if you are doing a cfinclude of the first > application.cf > m > file in the second (sub) application.cfm file, and there is only one > tag, they are sharing the same application scope. If > you > include an application.cfm file in the inner (sub) directory > that does > N > OT > have a cfapplication tag in it, you are NOT still in the prior > applicatio > n > scope - instead you are without an application scope > altogether (because > there is no running). At least that is how I > understand > it. Someone else could perhaps shed a bit more light. > > mark > > > -Original Message- > From: Steven Durette [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 21, 2002 5:43 PM > To: CF-Talk > Subject: CFAPPLICATION question. > > > Can answer this for me? Will users in a sub-application keep > the outer > application from timing out? > > Here is an example: > > I have a CF application that user log into an then have the option to > log into a sub application. The sub application is actually in a > subdirectory off of the main application. The outer application has a > timeout of 10 minutes. The inner application also has a timeout of 10 > minutes. While the users are clicking away in the sub-app are the > clicks stopping the outer app from timing out or will the have to log > back in after 10 minutes are up and they finally decide to click the > link back to the main application? > > Thanks, > > Steve Durette > Database Administrator/Web Developer > Engineering & Construction Systems Support > SBC/Ameritech > > > > > __ 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: CFAPPLICATION question.
Mark, If someone creates an application within an application, they don't nee application.cfm as CF will search backwards till it finds one. The only reason you would cfinclude a previous application.cfm is to make it part of the same original session for the user. But as you said If there is a different cfapplication used with a different name then you ende up with not being able to share variables scopes at all -Original Message- From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 22 January 2002 2:54 PM To: CF-Talk Subject: RE: CFAPPLICATION question. Steve, In my experience, if they both have separate tags with separately named applications, you are actually dealing with 2 different scopes - however if you are doing a cfinclude of the first application.cf m file in the second (sub) application.cfm file, and there is only one tag, they are sharing the same application scope. If you include an application.cfm file in the inner (sub) directory that does N OT have a cfapplication tag in it, you are NOT still in the prior applicatio n scope - instead you are without an application scope altogether (because there is no running). At least that is how I understand it. Someone else could perhaps shed a bit more light. mark -Original Message- From: Steven Durette [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 5:43 PM To: CF-Talk Subject: CFAPPLICATION question. Can answer this for me? Will users in a sub-application keep the outer application from timing out? Here is an example: I have a CF application that user log into an then have the option to log into a sub application. The sub application is actually in a subdirectory off of the main application. The outer application has a timeout of 10 minutes. The inner application also has a timeout of 10 minutes. While the users are clicking away in the sub-app are the clicks stopping the outer app from timing out or will the have to log back in after 10 minutes are up and they finally decide to click the link back to the main application? Thanks, Steve Durette Database Administrator/Web Developer Engineering & Construction Systems Support SBC/Ameritech __ 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: CFAPPLICATION question.
Steve, In my experience, if they both have separate tags with separately named applications, you are actually dealing with 2 different scopes - however if you are doing a cfinclude of the first application.cf m file in the second (sub) application.cfm file, and there is only one tag, they are sharing the same application scope. If you include an application.cfm file in the inner (sub) directory that does N OT have a cfapplication tag in it, you are NOT still in the prior applicatio n scope - instead you are without an application scope altogether (because there is no running). At least that is how I understand it. Someone else could perhaps shed a bit more light. mark -Original Message- From: Steven Durette [mailto:[EMAIL PROTECTED]] Sent: Monday, January 21, 2002 5:43 PM To: CF-Talk Subject: CFAPPLICATION question. Can answer this for me? Will users in a sub-application keep the outer application from timing out? Here is an example: I have a CF application that user log into an then have the option to log into a sub application. The sub application is actually in a subdirectory off of the main application. The outer application has a timeout of 10 minutes. The inner application also has a timeout of 10 minutes. While the users are clicking away in the sub-app are the clicks stopping the outer app from timing out or will the have to log back in after 10 minutes are up and they finally decide to click the link back to the main application? Thanks, Steve Durette Database Administrator/Web Developer Engineering & Construction Systems Support SBC/Ameritech __ 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