Remember that transfer reads in an XML file and ColdFusion makes it
easy to generate XML and/or performing operations on text files.
I'd look at saving an xml file with special strings for the username
and password. You could then write some code that a successful login
would fire off that would pass the username and password provided into
a method that would load up the XML file and then either operate on it
using XML or just perform a simple RegEx to change the username and
password. Save it to the location transfer looks for its XML and then
load up transfer into (presumably) the application scope.
All kind of potential issues you'll have to think for but it isn't an
insoluble problem.
I personally would vote against it being added to transfer unless I
saw an outpouring of other people who have the exact same requirement.
Seems like a bit of an unusual case to me, but maybe I don't get out
enough :->
Good luck with the system.
Best Wishes,
Peter
The usual way to do this is to roll the logging in your application.
If you want to connect every user with their own username and
password, I just have a feeling you're going to end up in a world of
hurt all the way up and down the stack, but I've been wrong plenty of
times before, so who knows . . .
Best Wishes,
Peter
Never suggested that security negates the use case for ORM. However,
your implementation of security is very unusual for an application
(not wrong, but not terribly common in my experience) and it may or
may not play well with the way that a given ORM thinks/works as your
use case was probably not taken into account when building the ORM and
if you did run into issues I think it's unlikely the ORM would be
changed to support your use case unless it's much more popular than I
realize or the change was extremely minor and didn't inconvenience
most of the rest of the user base.
Best Wishes,
Peter
You * could * set the cache to application scope / server scope, and
that would solve that issue.
But that being said, storing an instance of Transfer inside the
session scope for every user would probably be a pretty huge memory
hog. I'd be a bit worried about it, to tell you the truth.
I'm not sure how good a fit this is going to be in this scenario, but
I'm happy to hear how you go along with it.
Mark