You need to set a new field in the database. No matter what you do you're
calling the database first. So when they login that's where it says they are
logged in or not.
Robert Everland III
Web Developer
Dixon Ticonderoga
-----Original Message-----
From: Alex Puritche [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 26, 2000 11:38 AM
To: Robert Everland
Subject: Re[4]: Once again about Sessions
Robert,
Where I need to set this flag?(in which scope)
As I understand I need to go it this way.
User logged in.
I install session variable session.my_web_site_user which
contain user_unique_ID.
Than second user try to log in.
I check his Login/Password.
Then I check his user_unique_ID through array of
session.my_web_site_user variables for coincidence.
If coincidence found I ask user to contact support if not I
log him in the system.
In fact Stephen's database idea will make this job, but it
isn't suitable for me, course I need to add a query in each
page but it isn't acceptably.
:(
Wednesday, July 26, 2000, 6:06:44 PM, you wrote:
Robert> You don't have to search it, in thier record there is a column
called
Robert> loggedin (whatever) if it is set to 1 they are logged on, if it is
set up to
Robert> 0 they aren't logged in. So when they log in, you prob check the
password,
Robert> well at the same time check to see if the flag is set to 1 or 0, if
it's 1
Robert> they can't log on, if it's set to 0 they can log on then you update
thier
Robert> record to change the 0 to 1. Now thier record says 1 anyone else
that logs
Robert> on can't becuase of the flag. You do have to make a logout section
so the
Robert> record can be changed so they can log in at a future time.
Robert> Robert Everland III
Robert> Web Developer
Robert> Dixon Ticonderoga
Robert> -----Original Message-----
Robert> From: Alex Puritche [mailto:[EMAIL PROTECTED]]
Robert> Sent: Wednesday, July 26, 2000 10:45 AM
Robert> To: Robert Everland
Robert> Subject: Re[2]: Once again about Sessions
Robert> Robert,
Robert> I understand that I can set a flag. But my question was -
how I
Robert> can search a flag in the ocean of flags?
Robert> Wednesday, July 26, 2000, 5:41:02 PM, you wrote:
Robert>> Well when they login, just set up a flag that is set to a 1 if they
Robert> logged
Robert>> in. That way if someone else tries to login part of the
requirements
Robert> for
Robert>> them logging on is that the flag be set to 0. Make sure you make a
Robert> log out
Robert>> page that when they leave the site or exit the browser. That way
you
Robert> don't
Robert>> have to search through any sessions.
Robert>> Robert Everland III
Robert>> Web Developer
Robert>> Dixon Ticonderoga
Robert>> -----Original Message-----
Robert>> From: CF-Help _India [mailto:[EMAIL PROTECTED]]
Robert>> Sent: Wednesday, July 26, 2000 10:33 AM
Robert>> To: [EMAIL PROTECTED]
Robert>> Subject: Re: Once again about Sessions
Robert>> Hi,
Robert>> U paste this script in ur application.cfm to delete all session
Robert> arrays...
Robert>> <cfscript>structclear(session);</cfscript>
Robert>> iam not sure about ur other question
Robert>> regards
Robert>> Vikram
Robert>> ---- Alex Puritche <[EMAIL PROTECTED]> wrote:
>>> cf-talk,
>>>
>>> Can I search through session variables?
>>> I want to catch logging of two users with the same account.
>>> And I want to delete session variables if user wants to log out.
>>> Can somebody help me? Maybe somebody can some URL to the articles?
>>>
>>> --
>>> Regards,
>>> Alex mailto:[EMAIL PROTECTED]
>>>
>>>
>>>
Robert>>
Robert>
----------------------------------------------------------------------------
Robert>> --
>>> Archives: http://www.mail-archive.com/[email protected]/
>>> To Unsubscribe visit
Robert>>
Robert>
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
>>> or send a message to [EMAIL PROTECTED] with
'unsubscribe'
>>> in the body.
>>>
Robert>> __________________________________________________
Robert>> FREE voicemail, email, and fax...all in one place.
Robert>> Sign Up Now! http://www.onebox.com
Robert>>
Robert>
----------------------------------------------------------------------------
Robert>> --
Robert>> Archives: http://www.mail-archive.com/[email protected]/
Robert>> To Unsubscribe visit
Robert>>
Robert>
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
Robert>> send a message to [EMAIL PROTECTED] with
Robert> 'unsubscribe' in
Robert>> the body.
Robert>>
Robert>
----------------------------------------------------------------------------
Robert> --
Robert>> Archives: http://www.mail-archive.com/[email protected]/
Robert>> To Unsubscribe visit
Robert>
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
Robert> send a message to [EMAIL PROTECTED] with
'unsubscribe' in
Robert> the body.
--
Regards,
Alex mailto:[EMAIL PROTECTED]
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.