Re: ISAPI filters

2010-07-10 Thread Andrew Clarke

I don't think these will be issues in this instance.  I also meant to try using 
the wildcard dll specifically for .cfm requests instead of cf-iis6.dll or 
whatever, but now that I'm thinking about it I'm not sure if I actually did 
that.

I did try without the wildcard.  That allowed .HTML files to work but .cfm 
still didn't work.

Andrew.

On 2010-07-10, at 13:11, Dave Watts  wrote:

> 
>>  Instead of using the isapi as a wildcard, try having it be the handler for 
>> .cfm files and the static files won't be handled by the dll.  I
>> don't know if you would need other extensions as well, but you can set those 
>> up the same way.
> 
> That will fix this problem, but it will introduce other problems. CF
> does rely on URL patterns that don't necessarily correspond with
> extensions or physical locations that exist (CFIMAGE, RDS, etc) and
> those rely on the use of a filter rather than an extension handler.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
> 
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authorized
> instruction at our training centers, online, or onsit
> 
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335238
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ISAPI filters

2010-07-10 Thread Andrew Clarke

Thanks all of you for your suggestions.  I'm actually camping and off-roading 
this weekend, but here I am by the campfire, iPad lovingly nestled on my lap, 
because I appreciate everyones' responses, haha.

Unfortunately this environment isn't easily open to switching around to a 
reverse proxy although it's something to bring up.  The setup was working with 
CF 7 and it probably took me 15 hours to set up their staging servers as I spun 
my wheels for a while unsuccessfully trying to run wsconfig and having other 
issues.  When I finally cracked that problem I thought production would go 
better.

I worked on it from 20:00-05:00 the other night, including the time to roll 
back to the previous config, which fortunately still worked,

Staging and production are of course supposed to be identical but in this case 
apparently they aren't.

Thanks Dave for explaining that the wildcard filter will intercept all 
requests.  I thought that extensions set up as MIME types in IIS were handled 
natively and not passed through.

Well, the change was aborted, and now meetings must commence to decide what to 
do about it.  There was another CF instance that had to be upgraded due to an 
incompatibility introduced by a vendor and at least that one went without a 
hitch.

Andrew.

On 2010-07-09, at 11:05, Dave Watts  wrote:

> 
>> I'm trying to set up ColdFusion 9 in distributed mode (again, on some other 
>> servers).  As soon as I add the jrun_iis6_wildcard.dll ISAPI filter, a call 
>> to an HTML file will fail.  As soon as I remove the filter, it succeeds.
>> 
>> I thought that .html and .htm files were not served by a filter but directly 
>> by IIS.  Is this indicative of a misconfiguration within IIS, or what's 
>> going on here?
> 
> It's more complicated than that. When you install an ISAPI filter, all
> traffic is processed by that filter. The filter does whatever it's
> supposed to do, then forwards the request to the next stage of the IIS
> processing pipeline if there's anything left to do. My understanding
> is that Apache modules basically work the same way.
> 
> In the case of CF, the request is received by IIS, sent to the ISAPI
> filter, which passes the request to CF. CF looks at the URL patterns
> it has defined in web.xml. It then processes the request if it matches
> one of the URL patterns, or returns the request to the ISAPI filter if
> it doesn't. There is a tiny bit of overhead from all this request
> passing, which is why some high-availability environments (like the
> Macromedia site and presumably now the Adobe site) use a non-standard
> context root (something other than "/") for CF. By using a
> non-standard context root, the filter can be limited to a specific
> predetermined URL pattern, like "/cfusion".
> 
> None of this actually solves your problem, but it might explain why
> you're having that problem.
> 
> Finally, I hate to say this, but I'd recommended using a reverse proxy
> instead of distributed mode, which I've always found kind of fragile
> and problematic. Using a reverse proxy gets you the same benefits (the
> ability to isolate CF from your public interface, the ability to
> segment serving static files from dynamic ones) but doesn't rely on
> anything built into CF/JRun. We have a few high-availability clients
> using a reverse proxy, typically on public-facing Apache on Unix
> servers, sending requests to isolated CF/IIS servers internally, and
> this works pretty well.
> 
> Of course, it's probably too late to rethink your architecture at this point.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
> 
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authorized
> instruction at our training centers, online, or onsi
> 
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335237
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: logout and back button

2010-07-10 Thread Michael Grant

This is what I use and it always works for me.







On Sat, Jul 10, 2010 at 5:06 PM, Richard White  wrote:

>
> thanks, getting there, the following works for safari and firefox but
> doesnt work for ie:
>
> 
> 
> 
>
> 
> 
> 
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335236
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: (ot) Redirect of a .cfm page under PHP/Apache with .htaccess-file

2010-07-10 Thread Michael Grant

RewriteRule ^shop.cfm http://www.xyz.com [R=301,L]


On Sat, Jul 10, 2010 at 6:37 PM,  wrote:

>
> Hi list,
> a customer of mine ran a CF-shop
> on a windows host with IIS.
> Now he has a new PHP-Shop running on
> another host with apache.
> Anyone here who can describe how
> I can write a ReWriteRule on the
> apache server based on an .htaccess-file
> that requests to: www.xyz.com/shop.cfm
> are being redirected on the new
> host to: www.xyz.com ?
> Uwe
>
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335235
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


(ot) Redirect of a .cfm page under PHP/Apache with .htaccess-file

2010-07-10 Thread cf-talk

Hi list,
a customer of mine ran a CF-shop
on a windows host with IIS.
Now he has a new PHP-Shop running on
another host with apache.
Anyone here who can describe how
I can write a ReWriteRule on the
apache server based on an .htaccess-file
that requests to: www.xyz.com/shop.cfm
are being redirected on the new
host to: www.xyz.com ?
Uwe



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335234
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: logout and back button

2010-07-10 Thread Richard White

thanks, getting there, the following works for safari and firefox but doesnt 
work for ie:











~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335233
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: logout and back button

2010-07-10 Thread Michael Grant

no-cache would probably be the easiest.



On Sat, Jul 10, 2010 at 4:21 PM, Richard White  wrote:

>
> yes i have scanned alot of the web, and also seen this post although this
> code does not work. probably out of date as its 3 years old. is this what
> you use?
>
> how do you guys handle this situation?
>
>
>
>
>
> >  > com/blogs/Mastering_The_Back_Button_With_Javascript>http://www.hunlock.
> > com/blogs/Mastering_The_Back_Button_With_Javascript
> >
> >
> >
> > At 01:34 PM 7/10/2010, you wrote:
> >
> > >hi,
> > >
> > >i am storing user data in the session scope. when the user logs out
> > >it runs a structclear(session) and a cflocation back to the login
> > page.
> > >
> > >in the application.cfc onrequeststart function it checks if the user
> >
> > >information exists in the session and if not runs a cflocation back
> > >to the login page.
> > >
> > >however after logging out, i am able to click the back button and
> > >get back into the last page in the software.
> > >
> > >i have read a few posts about this situation but havent found a
> > >suitable solution yet, how do you guys handle this situation?
> > >
> > >thanks
> >
>
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335232
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: logout and back button

2010-07-10 Thread Richard White

yes i have scanned alot of the web, and also seen this post although this code 
does not work. probably out of date as its 3 years old. is this what you use?

how do you guys handle this situation?





>  com/blogs/Mastering_The_Back_Button_With_Javascript>http://www.hunlock.
> com/blogs/Mastering_The_Back_Button_With_Javascript 
> 
> 
> 
> At 01:34 PM 7/10/2010, you wrote:
> 
> >hi,
> >
> >i am storing user data in the session scope. when the user logs out 
> >it runs a structclear(session) and a cflocation back to the login 
> page.
> >
> >in the application.cfc onrequeststart function it checks if the user 
> 
> >information exists in the session and if not runs a cflocation back 
> >to the login page.
> >
> >however after logging out, i am able to click the back button and 
> >get back into the last page in the software.
> >
> >i have read a few posts about this situation but havent found a 
> >suitable solution yet, how do you guys handle this situation?
> >
> >thanks
> 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335231
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: logout and back button

2010-07-10 Thread Al Musella, DPM

http://www.hunlock.com/blogs/Mastering_The_Back_Button_With_Javascript
 



At 01:34 PM 7/10/2010, you wrote:

>hi,
>
>i am storing user data in the session scope. when the user logs out 
>it runs a structclear(session) and a cflocation back to the login page.
>
>in the application.cfc onrequeststart function it checks if the user 
>information exists in the session and if not runs a cflocation back 
>to the login page.
>
>however after logging out, i am able to click the back button and 
>get back into the last page in the software.
>
>i have read a few posts about this situation but havent found a 
>suitable solution yet, how do you guys handle this situation?
>
>thanks



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335230
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Coldfusion 8 vs 9 - cfc mapping differences?

2010-07-10 Thread John Allen

Dave Watts makes a good point.
He's smart.

On Sat, Jul 10, 2010 at 1:43 PM, Dave Watts  wrote:

>
> > When I use a cfajaxproxy, per application mappings set in Application.cfc
> > are not picked up. I have to use a fully qualified path from the web root
> > inside the proxied cfc.
>
> This makes sense to me.
>
> How would the AJAX client know anything about CF mappings? CF mappings
> only mean something within CF code. Once you're in the client, you
> need URLs that the client can understand.
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
>
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authorized
> instruction at our training centers, online, or onsite.
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335229
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Coldfusion 8 vs 9 - cfc mapping differences?

2010-07-10 Thread Dave Watts

> When I use a cfajaxproxy, per application mappings set in Application.cfc
> are not picked up. I have to use a fully qualified path from the web root
> inside the proxied cfc.

This makes sense to me.

How would the AJAX client know anything about CF mappings? CF mappings
only mean something within CF code. Once you're in the client, you
need URLs that the client can understand.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335228
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


logout and back button

2010-07-10 Thread Richard White

hi,

i am storing user data in the session scope. when the user logs out it runs a 
structclear(session) and a cflocation back to the login page. 

in the application.cfc onrequeststart function it checks if the user 
information exists in the session and if not runs a cflocation back to the 
login page. 

however after logging out, i am able to click the back button and get back into 
the last page in the software.

i have read a few posts about this situation but havent found a suitable 
solution yet, how do you guys handle this situation?

thanks 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335227
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Coldfusion 8 vs 9 - cfc mapping differences?

2010-07-10 Thread John Allen

I am also experiencing the same problem.
When I use a cfajaxproxy, per application mappings set in Application.cfc
are not picked up. I have to use a fully qualified path from the web root
inside the proxied cfc.


On Sat, Jul 10, 2010 at 10:39 AM, John Pullam wrote:

>
> I'm struggling a bit with running some previously operational applications
> under CF9. It seems that most of my challenge comes from cfc invocation.
> I've been browsing around trying to understand what has changed but haven't
> come up with anything much.
>
> I have my cfc's in the same folder as my normal templates. So I would
> expect that the following code would be valid because BSelects is in the
> same folder and getSessions is in the cfc. This worked in CF8. Is there
> something new I'm missing?
>
>  />
>
> CF says that the cfc BSelects could not be found. This should be simple but
> I don't get it!
>
> 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335226
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ISAPI filters

2010-07-10 Thread Dave Watts

>  Instead of using the isapi as a wildcard, try having it be the handler for 
> .cfm files and the static files won't be handled by the dll.  I
> don't know if you would need other extensions as well, but you can set those 
> up the same way.

That will fix this problem, but it will introduce other problems. CF
does rely on URL patterns that don't necessarily correspond with
extensions or physical locations that exist (CFIMAGE, RDS, etc) and
those rely on the use of a filter rather than an extension handler.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsit

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335225
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Coldfusion 8 vs 9 - cfc mapping differences?

2010-07-10 Thread John Pullam

I'm struggling a bit with running some previously operational applications 
under CF9. It seems that most of my challenge comes from cfc invocation. I've 
been browsing around trying to understand what has changed but haven't come up 
with anything much.

I have my cfc's in the same folder as my normal templates. So I would expect 
that the following code would be valid because BSelects is in the same folder 
and getSessions is in the cfc. This worked in CF8. Is there something new I'm 
missing? 



CF says that the cfc BSelects could not be found. This should be simple but I 
don't get it! 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335224
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ISAPI filters

2010-07-10 Thread Matthew Small

 Instead of using the isapi as a wildcard, try having it be the handler for 
.cfm files and the static files won't be handled by the dll.  I don't know if 
you would need other extensions as well, but you can set those up the same way.






>> I'm trying to set up ColdFusion 9
>
>on IIS7?
>
>> As soon as I add the jrun_iis6_wildcard.dll ISAPI 
>> filter, a call to an HTML file will fail.  As soon as I remove the 
>> filter, it succeeds.
>
>I also await a fix for jrun_iis6_wildcard.dll blocking static file requests.
>
>Thanks!,
>-Aaron Neff 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335223
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm