encrypted files

2011-10-10 Thread Akos Fortagh

hi everyone, any suggestion about this would be very much appreciated.
I have been given some work to make some changes to an existing site and all 
the .cfm and .cfc files are encrypted.
The original developers are REFUSING to supply us with the decrypted version 
even though the client says they own the site/pages which they paid big bucks 
for.
The developers say yes the client does own the pages but only in encrypted 
format which to me means owning a car which has no body or engine.
I've tried this tool 
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailextid=1007043
 but all files became 0KB with nothing in them.
What can I(we) do? 

~|
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:348030
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: encrypted files

2011-10-10 Thread Russ Michaels

there are some decryption tools out there, but they are pretty old and
do not work with files encrypted with current version of CF.
I would ask your client to review their contract with the original
developers and see if it does state that they will only provide the
encrypted files.
It the contract states that all code is owned by the client and does
not expressly stated encrypted only then they don't think they have
much of a leg to stand on and your client could threaten them with
legal action base don the fact that they are in breach of their
contract.


On Mon, Oct 10, 2011 at 1:54 PM, Akos Fortagh akos.fort...@yahoo.com wrote:

 hi everyone, any suggestion about this would be very much appreciated.
 I have been given some work to make some changes to an existing site and all 
 the .cfm and .cfc files are encrypted.
 The original developers are REFUSING to supply us with the decrypted version 
 even though the client says they own the site/pages which they paid big bucks 
 for.
 The developers say yes the client does own the pages but only in encrypted 
 format which to me means owning a car which has no body or engine.
 I've tried this tool 
 http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailextid=1007043
  but all files became 0KB with nothing in them.
 What can I(we) do?

 

~|
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:348031
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: encrypted files

2011-10-10 Thread Steve 'Cutter' Blades

No, this is entirely legal, depending upon the initial contract. The 
client may have the right to use the code for as long as they wish, but 
the intellectual property of that code remains within the sole ownership 
of the developer. It is not uncommon at all.

Steve 'Cutter' Blades
Adobe Community Professional
Adobe Certified Expert
Advanced Macromedia ColdFusion MX 7 Developer

http://cutterscrossing.com


Co-Author Learning Ext JS 3.2 Packt Publishing 2010
https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book

The best way to predict the future is to help create it


On 10/10/2011 8:54 AM, Akos Fortagh wrote:
 hi everyone, any suggestion about this would be very much appreciated.
 I have been given some work to make some changes to an existing site and all 
 the .cfm and .cfc files are encrypted.
 The original developers are REFUSING to supply us with the decrypted version 
 even though the client says they own the site/pages which they paid big bucks 
 for.
 The developers say yes the client does own the pages but only in encrypted 
 format which to me means owning a car which has no body or engine.
 I've tried this tool 
 http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailextid=1007043
  but all files became 0KB with nothing in them.
 What can I(we) do?

 

~|
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:348032
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Hiding email address from spiders

2011-10-10 Thread Rob Voyle

Hi Al

I replaced all email addresses with a coldfusion email form and then started 
getting a bunch of automated spam. Putting in an image based challenge that 
the sender must manually replicate stopped all the spam dead.
The form is at 
http://www.clergyleadership.com/email.cfm

Rob

 
   I had the same problem.. what I did is store the email addresses
 in 
 a database and then replace the email link with a link to a feedback
 form on your website. When people want to email someone, they click
 the link, fill out and submit the form. They never get to see the 
 actual email address.
 In my case, I needed to stop the recipients from getting spam,
 so 
 I have the emails going into a queue where I have to approve them 
 before they are sent. I check it every few hours - just a page of
 all 
 of the emails. Usually easy to spot bad ones.. and I have a radio 
 button for send / delete next to each one. Takes a few minutes a
 day. 
 and got rid of 100% of spam to the recipients.
 I just use an autonumber to link them, but you can use a UUID so 
 people can't easily guess the sequence. ( I use a form field to make
 it a little harder.)
 



~|
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:348033
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: encrypted files

2011-10-10 Thread James Holmes

Don't do anything else without your lawyer going over the original contract
under which the software was supplied. The original devs may be correct and
for all you know your current clients may be attempting to have you violate
copyright.

--
Shu Ha Ri: Agile and .NET blog
http://www.bifrost.com.au/


On 10 October 2011 20:54, Akos Fortagh akos.fort...@yahoo.com wrote:


 hi everyone, any suggestion about this would be very much appreciated.
 I have been given some work to make some changes to an existing site and
 all the .cfm and .cfc files are encrypted.
 The original developers are REFUSING to supply us with the decrypted
 version even though the client says they own the site/pages which they paid
 big bucks for.
 The developers say yes the client does own the pages but only in encrypted
 format which to me means owning a car which has no body or engine.
 I've tried this tool
 http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailextid=1007043but
  all files became 0KB with nothing in them.
 What can I(we) do?



~|
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:348034
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion 9 Session Replication

2011-10-10 Thread Nathan Strutz

So the spirit of your question seems to be can you replicate sessions
without software load balancing? The basic answer is that you can't.
Session replication is a function of the CF load balancing features.
However, there are other ways to read your question.

If you are asking if you can swap sessions around without allowing your
coldfusion servers to have software-based failover, I am not completely sure
about that. It seems like something that should be possible, but I can't
think of how, it's been a couple versions and a few years since I've managed
clustered servers. Do you really want to disable software failover, though?
It will be more intelligent than your hardware failover.

Finally, I want to point out that session replication is typically a bad
idea. It will eat up your network bandwidth and feast on your CPUs. It will
have all your available memory for dessert. If one of your servers crashes
because it is out of RAM, the other one will do the same. So how do you get
around it? Obviously sticky sessions on your HWLB is the first step. But
assuming your servers will crash, how do your replicate session data? There
are lots of ways, and it depends on your application and what the
application rules are for what data to store where. Sometimes session data
can just be discarded and lost - things like saved search criteria.
Sometimes you can rebuild it from data in your database - you just need a
link from the session to the user information; you could use a cookie or put
it in your database. You can also take advantage of CF's caching engine,
Ehcache, which can do clustered cache, in memory, on disk, even state
servers, and combinations of these all.

Don't use client variables... just... don't.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Sun, Oct 9, 2011 at 5:30 PM, Brad Parker bpar...@uhlig.com wrote:


 Here's a question hopefully someone can answer.  Is it possible to use
 session replication to multiple instances on different physical servers
 without having to use CF load-balancing?  We have a hardware load balancer
 in front of the web servers.  I would like hardware appliance to handle the
 load-balancing and failover in the event a failure.  All I want CF to do is
 replicate the sessions so they are available on the other servers if the
 load balancer marks a server as unavailable.  Is this possible?

 

~|
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:348035
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion 9 Session Replication

2011-10-10 Thread John Blayter

Over the years I have found session replication to be very network
intensive between the machines. I wrote a session persistence tag that
drops it to a database and rebuilds it as necessary. It works well if
you don't go changing your session scope on every page and you don't
have too much in there.
http://sessionswap.riaforge.org/

I recently refactored this to use some stored procedures that just do
a SELECT for the reads and an INSERT for the writes (got rid of the
updates)   I then have another job that cleans up the old session
data every 5 minutes. It works very well with 6,000 concurrent users.
You could do the same in a short amount of work.

John Blayter
Land line: 303.731.3009
Mobile: 303.325.1979
http://www.blayter.com/john/

Denver ColdFusion User Group Manager
http://denvercfug.org/



On Mon, Oct 10, 2011 at 12:05 PM, Nathan Strutz str...@gmail.com wrote:

 So the spirit of your question seems to be can you replicate sessions
 without software load balancing? The basic answer is that you can't.
 Session replication is a function of the CF load balancing features.
 However, there are other ways to read your question.

 If you are asking if you can swap sessions around without allowing your
 coldfusion servers to have software-based failover, I am not completely sure
 about that. It seems like something that should be possible, but I can't
 think of how, it's been a couple versions and a few years since I've managed
 clustered servers. Do you really want to disable software failover, though?
 It will be more intelligent than your hardware failover.

 Finally, I want to point out that session replication is typically a bad
 idea. It will eat up your network bandwidth and feast on your CPUs. It will
 have all your available memory for dessert. If one of your servers crashes
 because it is out of RAM, the other one will do the same. So how do you get
 around it? Obviously sticky sessions on your HWLB is the first step. But
 assuming your servers will crash, how do your replicate session data? There
 are lots of ways, and it depends on your application and what the
 application rules are for what data to store where. Sometimes session data
 can just be discarded and lost - things like saved search criteria.
 Sometimes you can rebuild it from data in your database - you just need a
 link from the session to the user information; you could use a cookie or put
 it in your database. You can also take advantage of CF's caching engine,
 Ehcache, which can do clustered cache, in memory, on disk, even state
 servers, and combinations of these all.

 Don't use client variables... just... don't.

 nathan strutz
 [www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


 On Sun, Oct 9, 2011 at 5:30 PM, Brad Parker bpar...@uhlig.com wrote:


 Here's a question hopefully someone can answer.  Is it possible to use
 session replication to multiple instances on different physical servers
 without having to use CF load-balancing?  We have a hardware load balancer
 in front of the web servers.  I would like hardware appliance to handle the
 load-balancing and failover in the event a failure.  All I want CF to do is
 replicate the sessions so they are available on the other servers if the
 load balancer marks a server as unavailable.  Is this possible?



 

~|
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:348036
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


autosuggest event with angle brackets

2011-10-10 Thread Carol Knapp

I have a form field that needs to hold firstname lastname emailaddress and 
I would like to use an autosuggest event to make it work. The problem is the 
angle brackets: I can get the autosuggest list to look right if I send it the 
suggested values using lt;/gt; but then it returns the lt;/gt; inside the 
field content. Is there some javascript I can use to replace the returned value 
with the version that uses the real angle brackets? 

Here's the test version of the code I'm using, adapted from the cf docs:

html 
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; 
head 
cfajaximport tags=cfinput-autosuggest 
script 
  var init = function() 
  { 
autosuggestobj = 
ColdFusion.Autosuggest.getAutosuggestObject('nameemail'); 
autosuggestobj.itemSelectEvent.subscribe(foo); 
  } 
  var foo = function(event,args) 
  { 
var msg  = ; 
msg = msg + Event:  + event + \n\n; 
msg = msg + Selected Item:  + args[2] + \n\n; 
msg = msg + Index:  + args[1]._nItemIndex + \n\n; 
var newmsg = msg.replace(lt;,); //just playing w/replace
var newnewmsg = newmsg.replace(gt;,);
alert(newnewmsg); 
  } 
  var getName = function(){ 
return [Joe Smith lt;joesm...@.comgt;,Jane Smythe 
lt;jsmy...@456.comgt; ,Jon Gggg lt;j...@jgjg.netgt;,Clyde Farmer 
lt;clydefar...@z.comgt;,Alka Seltzer 
lt;aselt...@amazzz.comgt;,Pendant Hang lt;ph...@claws.comgt;,Penny Utah 
lt;pu...@zyxwvut.netgt;,Amy Winston lt;awins...@gluggg.orggt;]; 
  } 
/script 
/head 
body
center
h3Attaching an event handler to the autosuggest object/h3 
cfform name=mycfform method=post  
 Name:br /
 cfinput 
type=text 
name=nameemail 
size=40
autosuggest=javascript:getName({cfautosuggestvalue}) 
autosuggestMinLength=1 
autosuggestBindDelay=1 
  ifirst last lt;emailgt;/i
  cfset ajaxOnLoad(init) 
/cfform 
/center
/body 
/html 

~|
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:348037
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: ColdFusion 9 Session Replication

2011-10-10 Thread Mark A. Kruger

Ditto to Nate's comments. 

When you think about it you can imagine the challenges for yourself. To
truly do session replication you need enough physical memory to devise heaps
big enough for any one instance in the cluster to store all the sessions
(it's own and the replicated ones) for all the other instances in the
cluster. So if your sessions take up a modest 256 megs (for example) and you
have 4 machines then each machine will need a gig just for replicated
sessions.  Meanwhile, network traffic increases exponentially with each
cluster member due to session info flying back and forth between the various
instances... so you probably should put session traffic on it's own network
(multi-homed machines and private subnet perhaps) then there is the
computation power it takes to keep it all in synch... over all it's
functional on a small scale but does not scale upward very well - as each
new instance has an exponential increase on the resource required.

-Mark

Mark Kruger - CFG
CF Webtools
www.cfwebtools.com
www.coldfusionmuse.com
O: 402.408.3733 x105
E: mkru...@cfwebtools.com
Skype: markakruger


-Original Message-
From: Nathan Strutz [mailto:str...@gmail.com] 
Sent: Monday, October 10, 2011 1:06 PM
To: cf-talk
Subject: Re: ColdFusion 9 Session Replication


So the spirit of your question seems to be can you replicate sessions
without software load balancing? The basic answer is that you can't.
Session replication is a function of the CF load balancing features.
However, there are other ways to read your question.

If you are asking if you can swap sessions around without allowing your
coldfusion servers to have software-based failover, I am not completely sure
about that. It seems like something that should be possible, but I can't
think of how, it's been a couple versions and a few years since I've managed
clustered servers. Do you really want to disable software failover, though?
It will be more intelligent than your hardware failover.

Finally, I want to point out that session replication is typically a bad
idea. It will eat up your network bandwidth and feast on your CPUs. It will
have all your available memory for dessert. If one of your servers crashes
because it is out of RAM, the other one will do the same. So how do you get
around it? Obviously sticky sessions on your HWLB is the first step. But
assuming your servers will crash, how do your replicate session data? There
are lots of ways, and it depends on your application and what the
application rules are for what data to store where. Sometimes session data
can just be discarded and lost - things like saved search criteria.
Sometimes you can rebuild it from data in your database - you just need a
link from the session to the user information; you could use a cookie or put
it in your database. You can also take advantage of CF's caching engine,
Ehcache, which can do clustered cache, in memory, on disk, even state
servers, and combinations of these all.

Don't use client variables... just... don't.

nathan strutz
[www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


On Sun, Oct 9, 2011 at 5:30 PM, Brad Parker bpar...@uhlig.com wrote:


 Here's a question hopefully someone can answer.  Is it possible to use
 session replication to multiple instances on different physical servers
 without having to use CF load-balancing?  We have a hardware load balancer
 in front of the web servers.  I would like hardware appliance to handle
the
 load-balancing and failover in the event a failure.  All I want CF to do
is
 replicate the sessions so they are available on the other servers if the
 load balancer marks a server as unavailable.  Is this possible?

 



~|
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:348038
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: autosuggest event with angle brackets

2011-10-10 Thread Carol Knapp

Edit: well that didn't come through at all clear. What I'm trying to say is 
that I need to pass the and-lt-semi and and-gt-semi (the html format version of 
the less than and greater than signs) inside of the list in order to get the 
autosuggest list to display them as angle brackets, but I don't want 
and-lt-semi and and-gt-semi to appear in the form field returned. 

~|
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:348039
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion 9 Session Replication

2011-10-10 Thread .jonah

If you really need to have scope shared across servers you can use a 
distributed EHCache implementation. That way the shared data can even be 
offloaded from the app servers onto its own set of servers.

Instead of just accessing everything via session. in your application 
you'd use a facade to the shared cache data and key it off of the user's 
session cookie.

Rob Brooks-Bilson has written quite a bit about setting up distributed 
EHCache.

Cheers,
.jonah

On 10/10/11 1:25 PM, Mark A. Kruger wrote:
 Ditto to Nate's comments.

 When you think about it you can imagine the challenges for yourself. To
 truly do session replication you need enough physical memory to devise heaps
 big enough for any one instance in the cluster to store all the sessions
 (it's own and the replicated ones) for all the other instances in the
 cluster. So if your sessions take up a modest 256 megs (for example) and you
 have 4 machines then each machine will need a gig just for replicated
 sessions.  Meanwhile, network traffic increases exponentially with each
 cluster member due to session info flying back and forth between the various
 instances... so you probably should put session traffic on it's own network
 (multi-homed machines and private subnet perhaps) then there is the
 computation power it takes to keep it all in synch... over all it's
 functional on a small scale but does not scale upward very well - as each
 new instance has an exponential increase on the resource required.

 -Mark

 Mark Kruger - CFG
 CF Webtools
 www.cfwebtools.com
 www.coldfusionmuse.com
 O: 402.408.3733 x105
 E: mkru...@cfwebtools.com
 Skype: markakruger


 -Original Message-
 From: Nathan Strutz [mailto:str...@gmail.com]
 Sent: Monday, October 10, 2011 1:06 PM
 To: cf-talk
 Subject: Re: ColdFusion 9 Session Replication


 So the spirit of your question seems to be can you replicate sessions
 without software load balancing? The basic answer is that you can't.
 Session replication is a function of the CF load balancing features.
 However, there are other ways to read your question.

 If you are asking if you can swap sessions around without allowing your
 coldfusion servers to have software-based failover, I am not completely sure
 about that. It seems like something that should be possible, but I can't
 think of how, it's been a couple versions and a few years since I've managed
 clustered servers. Do you really want to disable software failover, though?
 It will be more intelligent than your hardware failover.

 Finally, I want to point out that session replication is typically a bad
 idea. It will eat up your network bandwidth and feast on your CPUs. It will
 have all your available memory for dessert. If one of your servers crashes
 because it is out of RAM, the other one will do the same. So how do you get
 around it? Obviously sticky sessions on your HWLB is the first step. But
 assuming your servers will crash, how do your replicate session data? There
 are lots of ways, and it depends on your application and what the
 application rules are for what data to store where. Sometimes session data
 can just be discarded and lost - things like saved search criteria.
 Sometimes you can rebuild it from data in your database - you just need a
 link from the session to the user information; you could use a cookie or put
 it in your database. You can also take advantage of CF's caching engine,
 Ehcache, which can do clustered cache, in memory, on disk, even state
 servers, and combinations of these all.

 Don't use client variables... just... don't.

 nathan strutz
 [www.dopefly.com] [hi.im/nathanstrutz] [about.me/nathanstrutz]


 On Sun, Oct 9, 2011 at 5:30 PM, Brad Parkerbpar...@uhlig.com  wrote:

 Here's a question hopefully someone can answer.  Is it possible to use
 session replication to multiple instances on different physical servers
 without having to use CF load-balancing?  We have a hardware load balancer
 in front of the web servers.  I would like hardware appliance to handle
 the
 load-balancing and failover in the event a failure.  All I want CF to do
 is
 replicate the sessions so they are available on the other servers if the
 load balancer marks a server as unavailable.  Is this possible?




 

~|
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:348040
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: encrypted files

2011-10-10 Thread Roger Austin

On 10/10/2011 10:41 AM, James Holmes wrote:

 Don't do anything else without your lawyer going over the original contract
 under which the software was supplied. The original devs may be correct and
 for all you know your current clients may be attempting to have you violate
 copyright.

This is great advice for all developers when dealing with clients.
The client may feel they are in the right, but the contract may say
otherwise.

No matter what, it looks like you could be the man in the middle
of a legal mess if you would decrypt the source and provide it back
to the client.

My suggestion, run away!
-- 
LinkedIn: http://www.linkedin.com/pub/8/a4/60
Twitter:  http://twitter.com/RogerTheGeek
Google+:  https://plus.google.com/117357905892731200369

~|
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:348041
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion 9 Session Replication

2011-10-10 Thread Russ Michaels

One option is to use client vars, but they cannot store complex vars
and changing from session to client scope is a PITA in any sizeable
app.

here is one trick I have used.

as u know there is a cookie on the users machine which identifies the
session, it contains  the cfid and cftoken or JessionID if your using
that,

Whenever a session is created/changed, dump the contents out to WDDX
or JSON file on a network shared resource using the info form the
cookie as the filename.
If the session cookie exists but the data doesn't exist, check for
this this file and load it if it does exist.

In addition this also provides you with you with session storage in
case cf dies, the users do not lose their session data as it will be
reloaded when cf restarts.

Don't forget to run a schedule to cleanup old files.

HTH
Russ

~|
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:348042
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion 9 Session Replication

2011-10-10 Thread Justin Scott

 One option is to use client vars, but they cannot store complex
 vars and changing from session to client scope is a PITA in any
 sizeable app. ... here is one trick I have used.

Interesting discussion so far.  I'm surprised nobody has brought up
what seems to be the obvious solution, at least in my opinion: persist
to the database.  My personal opinion is that if something is
important enough to store as part of a session, it's probably
important enough to throw back to the database and store with the
user's profile/account in perpetuity.  My approach has usually been to
store any settings or session data to the database at the point it's
set/created and reload it with each page request as part of normal
operations.  The applications I generally work on are very
data-intensive so one additional query to grab user preferences and
other session-like data is trivial in the grand scheme of things.
This won't work if you're trying to persist complex objects in the
session scope, of course, but it's a limitation I can live in my
applications.  It's a small price to pay knowing that an app can
seamlessly scale from one to two to 300 servers without code changes
around session management or dealing with special cache servers or
clustering systems.  In any case, find a solution that works for your
needs and run with it.


-Justin

~|
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:348043
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm