Re: multi sessions in one
> It is not an issue of session race and I don't see how CFLOCK could help. > Imagine you have a big system designed to manage big events like annual > conferences wirh inscription, payments, etc.. > The first thing the user will do is select the conference he wants to work > with, then the id of this conference > is stored in a session variable. All he will do any further wil be done on > this conference. It is impossible to do anything without first selecting the > event. > But suppose he opens a new window in which he selects another conference, the > session variable will contain the id of this new event. > Then anything he does using the first window will be done on this new > conference, and this may cause trouble. Then you'll have to track that first thing a user does a bit more carefully. Instead of storing it in something like Session.conferenceID, create an array within the session to correspond to individual browser windows, and when a user chooses a conference you can see whether the user was already working on that conference - and if not, stick it in a new array position: Session.conferences[1].id = ... Session.conferences[2].id = ... As a user works on a conference, you could pass a unique identifier other than the conference ID along through the form-driven editing process, to ensure that edits are coming from the same browser (which is basically the suggestion I made in my previous response). But honestly, you probably won't even need to do that - you know the path of the editing process, so you know when a user goes to the first step of the process they're starting a new edit. 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/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353031 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: multi sessions in one
In this case, you can't store that information in the session. You'd have to do something like passing all the request specific keys in the URL from page to page. ?confID=xxx. Then, when you build your URLs, pass them along on every link. There isn't a way to send different cookies back from different windows of the same brower... On 10/30/12 4:58 PM, =?ISO-8859-1?Q?Claude_Schn=E9egans wrote: > >>You can prevent session-based race conditions by using CFLOCK around > any code that reads or writes session variables, > > It is not an issue of session race and I don't see how CFLOCK could help. > Imagine you have a big system designed to manage big events like annual > conferences wirh inscription, payments, etc.. > The first thing the user will do is select the conference he wants to work > with, then the id of this conference > is stored in a session variable. All he will do any further wil be done on > this conference. It is impossible to do anything without first selecting the > event. > But suppose he opens a new window in which he selects another conference, the > session variable will contain the id of this new event. > Then anything he does using the first window will be done on this new > conference, and this may cause trouble. > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353030 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: multi sessions in one
>>You can prevent session-based race conditions by using CFLOCK around any code that reads or writes session variables, It is not an issue of session race and I don't see how CFLOCK could help. Imagine you have a big system designed to manage big events like annual conferences wirh inscription, payments, etc.. The first thing the user will do is select the conference he wants to work with, then the id of this conference is stored in a session variable. All he will do any further wil be done on this conference. It is impossible to do anything without first selecting the event. But suppose he opens a new window in which he selects another conference, the session variable will contain the id of this new event. Then anything he does using the first window will be done on this new conference, and this may cause trouble. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353029 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How do I code French accents in a CFMail (HTML format) ?
I discovered that I had not properly coded the type="HTML" on the cfmail. When I corrected that and used the &b; notation it seems to work. Thanks for the tip but it turned out that I didn't need it. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353028 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: multi sessions in one
> I've noticed that one of my users was causing errors in my application > because he opens several windows to work in different areas of the system in > the same time. This causes conflicts in the session scope, since all of his > windows are having the same cookie, therefore the same session. > > This person is now aware of the problem and is not using several windows > anymore, but just out of cutiosity, does any one see how I could detect > such behavior? This is pretty common - I see people doing it all the time. You can prevent session-based race conditions by using CFLOCK around any code that reads or writes session variables, where (a) a race condition might occur, and (b) you actually care about the outcome of that race condition - for example, if the user causes two database queries to fetch data rather than one, but the data is the same in both queries, you don't care about the outcome. You can create an identifier in the session scope that corresponds to a specific browser instance - setting the value initially on the first page load, for example - and making sure that token is passed back on each page request and that it matches the stored value. But if you simply use CFLOCK, you probably don't need to bother with this. 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/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353027 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
multi sessions in one
Hi, I've noticed that one of my users was causing errors in my application because he opens several windows to work in different areas of the system in the same time. This causes conflicts in the session scope, since all of his windows are having the same cookie, therefore the same session. This person is now aware of the problem and is not using several windows anymore, but just out of cutiosity, does any one see how I could detect such behavior? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353026 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: How do I code French accents in a CFMail (HTML format) ?
I have used cfmail to send out similar accented characters and it worked well by putting this at the very top of the page: Let me know if it works. CHeers ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353025 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
How do I code French accents in a CFMail (HTML format) ?
I have a bilingual website and on the French side I need to send out a standard email that includes some accented characters. I have tried several techniques, including using the HTML notation (e.g., é) and just letting the characters be imbedded in the body, but it doesn't look right when received. I have tried it with charset="ISO-8859-1" and with utf-8. No difference. How should I be doing this? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353024 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfdirectory
> > > And to add to this, if you don't have CF running as a specific AD > > > account, but as the default (Local System), it will not have rights to > > > any network resources at all and you can't really change that. > > > > I recommend you read the CF 9 Lockdown document that's on the Adobe > > site, and use that as a guide for configuring the service user > > account. > > > > http://www.adobe.com/products/coldfusion/whitepapers/pdf/91025512_cf9_lockdownguide_wp_ue.pdf > > Sorry to say that link now takes you to the Adobe ColdFusion 10 product page. Here's the new, improved link: http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/products/coldfusion/pdfs/91025512-cf9-lockdownguide-wp-ue.pdf 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/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353023 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: cfdirectory
Sorry to say that link now takes you to the Adobe ColdFusion 10 product page. -Original Message- And to add to this, if you don't have CF running as a specific AD account, but as the default (Local System), it will not have rights to any network resources at all and you can't really change that. I recommend you read the CF 9 Lockdown document that's on the Adobe site, and use that as a guide for configuring the service user account. http://www.adobe.com/products/coldfusion/whitepapers/pdf/91025512_cf9_lockdownguide_wp_ue.pdf 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/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353022 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfdirectory
> This should work, so you need to address the rights issue. What Windows > user account is the ColdFusion service running under? If you have it > running as a specific Active Directory account, you need to modify the > fileserver folder to grant Read access to that account. And to add to this, if you don't have CF running as a specific AD account, but as the default (Local System), it will not have rights to any network resources at all and you can't really change that. I recommend you read the CF 9 Lockdown document that's on the Adobe site, and use that as a guide for configuring the service user account. http://www.adobe.com/products/coldfusion/whitepapers/pdf/91025512_cf9_lockdownguide_wp_ue.pdf 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/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353021 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: cfdirectory
Thanks. We're going to address rights to see if that makes it work. -Original Message- From: Carl Von Stetten [mailto:vonner.li...@vonner.net] Sent: Monday, October 29, 2012 5:04 PM To: cf-talk Subject: Re: cfdirectory This should work, so you need to address the rights issue. What Windows user account is the ColdFusion service running under? If you have it running as a specific Active Directory account, you need to modify the fileserver folder to grant Read access to that account. -Carl V. On 10/29/2012 2:00 PM, Stephens, Larry V wrote: > Running CF10 on IIS7.5 on Windows server 2008R2 on Server Z > > Filerserver (O) running on 2008R2 > > I want to do a cfdirectory to the fileserver to list the contents of a > directory. > > Directory="\\UNC\path..." name="MyDir" (where \\UNC\path... relates to the > fileserver) yields nothing when I dump MyDir. > > We found a note at > http://www.asadesigner.com/16-coldfusion/c1788fe8b3536edc.htm tells us this > is a rights issue. > > (I'm wanting to list the contents of a specific sub-directory, the name of > which I can determine programmatically - and would be photos - so I can > display a list of those images and allow my user to click a constructed link > and see the image.) > > Other than cfdirectory, is there a good way to display a directory listing > that comes back as query results that I can loop and display on a page? > Incorporate something in C? In vbScript? > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353020 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm