So, if I do something like:

<cfif not IsDefined("client.userid")>
  <!--- Redirect to login page --->
  <cflocation url="login.cfm">
</cfif>

A user logs into a protected forum application from his office computer, CF
sets a cookie which identifies him and associates the client with a set of
client variables.

Now the user goes home and once again is forced to login.  This is expected.

Next day, back to the office.  Would he be forced to login once again?
Ideally, I'd like to be able to recognize the user from any PC from which
he's logged in once, and not force him to log in each time.

Jim


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 3:37 PM
Subject: RE: Can I do this with CF client variables?


> Each instance of a variable is 1:1, but there's no reason why multiple
> instances of a variable cannot contain the same value.  #client.userid#
> on machine a and b are separate variables, but they can both contain
> "mrbill"
>
> ---
> Billy Cravens
>
>
> -----Original Message-----
> From: Jim McAtee [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 4:28 PM
> To: CF-Talk
> Subject: Re: Can I do this with CF client variables?
>
> I'm probably making it more complex than it needs to be.  If I'm setting
> CF
> client variables, for instance, just a UserID to identify a returning
> member
> (customer, employee, whatever), will CF recognize the returning client
> from
> more than one computer?
>
> Maybe my misunderstanding stems from not thoroughly understanding how
> cookies are implemented.  With CF client variables, can a 1:many (one
> set of
> client variables to many computers/cookies) relationship exist, or must
> it
> be 1:1?
>
> Jim
>
>
> ----- Original Message -----
> From: "Jim McAtee" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Tuesday, April 23, 2002 11:24 AM
> Subject: Can I do this with CF client variables?
>
>
> > I'm developing a discussion application where logins are required, but
> I'd
> > like to recognize returning members without a login.  So, I'll use a
> cookie.
> > A little bit simpler is to use CF client variables (cookie based).
> >
> > My question is whether it will be possible to have a person
> automatically
> > recognized by cookie based client variables on more than one computer,
> > without forcing them to login again.  That is, say someone commonly
> uses
> the
> > discussion application from both their work computer and from their
> home
> > computer.  Can I use CF client variables and be able to have CF
> recognize
> > the person from each computer?
> >
> > Jim
> >
> >
>
> 
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to