RE: Logging users in with CFC

2003-08-26 Thread Andre Mohamed
Mike,

Macromedia has an article about this very topic:

http://www.macromedia.com/devnet/mx/coldfusion/articles/cfc_practices.ht
ml

It’s been there for about a year so I’m sure there are more
comprehensive examples around by now.

Regards,

André

-Original Message-
From: Mike Kear [mailto:[EMAIL PROTECTED] 
Sent: 26 August 2003 04:24
To: CF-Talk
Subject: RE: Logging users in with CFC

Tony, to be honest, I'm not sure.  It's just that I haven't seen any
examples of CFCs being used for that functionality, so I wondered why. 

It seems that one of the ways to collect all the functionality related
to
users is to have a users.cfc where you'd have a method called login, one
called listusers, one called updateprofile, one called emailpassword
etc,
and then all the database access, and action related to user access is
in
the one place.   This is what's advocated in other applications about
CFCs,
but I haven't seen login, authentication, updating last login date,
number
of logins etc  - all that user access stuff - gathered into a CFC.

So I wondered if that was because people have always done it without
CFCs
and therefore old habits are at play, or whether there was a logical
reason
not to include this stuff in CFCs, that I wasn't seeing. (Believe me
there's
a LOT about my world that I don't see.  Just ask my wife!)



Cheers,
Michael Kear
Windsor, NSW, Australia
AFP Webworks.




-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 26 August 2003 1:05 PM
To: CF-Talk
Subject: RE: Logging users in with CFC

what things might you be worried about?

security?

just wondering...i hadnt given it much thought
but now that you mention it, what things are 
you wondering about?

later.
tw





~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com


RE: Logging users in with CFC

2003-08-26 Thread Tony Weeg
i cant fathom a reason not to.  its probably just a prerogative
choice for a developer to make.

but then again...im sure someone will come up with a reason, albeit
obscure, there might be one :)

cheers...

oh, and my wife...loves when im working...she talks, i nod and sometimes
she quizzes me on the details...im about 95% winning percentage on the
short term memory skills test ;)

later

-Original Message-
From: Mike Kear [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2003 11:24 PM
To: CF-Talk
Subject: RE: Logging users in with CFC


Tony, to be honest, I'm not sure.  It's just that I haven't seen any
examples of CFCs being used for that functionality, so I wondered why. 

It seems that one of the ways to collect all the functionality related
to
users is to have a users.cfc where you'd have a method called login, one
called listusers, one called updateprofile, one called emailpassword
etc,
and then all the database access, and action related to user access is
in
the one place.   This is what's advocated in other applications about
CFCs,
but I haven't seen login, authentication, updating last login date,
number
of logins etc  - all that user access stuff - gathered into a CFC.

So I wondered if that was because people have always done it without
CFCs
and therefore old habits are at play, or whether there was a logical
reason
not to include this stuff in CFCs, that I wasn't seeing. (Believe me
there's
a LOT about my world that I don't see.  Just ask my wife!)



Cheers,
Michael Kear
Windsor, NSW, Australia
AFP Webworks.




-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 26 August 2003 1:05 PM
To: CF-Talk
Subject: RE: Logging users in with CFC

what things might you be worried about?

security?

just wondering...i hadnt given it much thought
but now that you mention it, what things are 
you wondering about?

later.
tw





~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com


RE: Logging users in with CFC

2003-08-26 Thread Mike Kear
Tony, to be honest, I'm not sure.  It's just that I haven't seen any
examples of CFCs being used for that functionality, so I wondered why. 

It seems that one of the ways to collect all the functionality related to
users is to have a users.cfc where you'd have a method called login, one
called listusers, one called updateprofile, one called emailpassword etc,
and then all the database access, and action related to user access is in
the one place.   This is what's advocated in other applications about CFCs,
but I haven't seen login, authentication, updating last login date, number
of logins etc  - all that user access stuff - gathered into a CFC.

So I wondered if that was because people have always done it without CFCs
and therefore old habits are at play, or whether there was a logical reason
not to include this stuff in CFCs, that I wasn't seeing. (Believe me there's
a LOT about my world that I don't see.  Just ask my wife!)



Cheers,
Michael Kear
Windsor, NSW, Australia
AFP Webworks.




-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 26 August 2003 1:05 PM
To: CF-Talk
Subject: RE: Logging users in with CFC

what things might you be worried about?

security?

just wondering...i hadnt given it much thought
but now that you mention it, what things are 
you wondering about?

later.
tw




~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm


RE: Logging users in with CFC

2003-08-26 Thread Tony Weeg
what things might you be worried about?

security?

just wondering...i hadnt given it much thought
but now that you mention it, what things are 
you wondering about?

later.
tw

-Original Message-
From: Mike Kear [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2003 10:10 PM
To: CF-Talk
Subject: Logging users in with CFC


I'm learning about CFCs, and becoming more and more a devotee every day.
I
see lots of benefits with becoming adept at using them, but something
has
drawn my attention    

I've not seen an example of using a CFC to log users in and handle their
authorization etc.  I know the code isn't much to log someone in, but it
seems to me that if you have a CFC to handle all the manipulation of
users
profiles and access etc, then you ought to have the login code in that
CFC
too.

Are there any pros and cons with putting the username/password
verification
etc into a "users.cfc" along with a function to update the profile and
list
users and other user functions? I just like the idea of putting all
that
code together in once place, leaving the presentation aspects to the
.cfm
files.



Cheers,
Michael Kear
Windsor, NSW, Australia
AFP Webworks.






~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm