You don't have to search it, in thier record there is a column called
loggedin (whatever) if it is set to 1 they are logged on, if it is set up to
0 they aren't logged in. So when they log in, you prob check the password,
well at the same time check to see if the flag is set to 1 or 0, if it's 1
they can't log on, if it's set to 0 they can log on then you update thier
record to change the 0 to 1. Now thier record says 1 anyone else that logs
on can't becuase of the flag. You do have to make a logout section so the
record can be changed so they can log in at a future time.


Robert Everland III
Web Developer
Dixon Ticonderoga


-----Original Message-----
From: Alex Puritche [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 26, 2000 10:45 AM
To: Robert Everland
Subject: Re[2]: Once again about Sessions


Robert,
        I understand that I can set a flag. But my question was - how I
        can search a flag in the ocean of flags?
        
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
logged
Robert> in. That way if someone else tries to login part of the requirements
for
Robert> them logging on is that the flag be set to 0. Make sure you make a
log out
Robert> page that when they leave the site or exit the browser. That way you
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
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> --
>> Archives: http://www.mail-archive.com/[email protected]/
>> To Unsubscribe visit
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> 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.
Robert>
----------------------------------------------------------------------------
--
Robert> Archives: http://www.mail-archive.com/[email protected]/
Robert> 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.


-- 
 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.

Reply via email to