You don't really even need a custom tag.  When the user logs in, just assign
their user name to a session variable, like session.username or whatever.
Then when you query, just select where username='#session.username#'.
That'll keep all users only seeing their own data.

Josh Black

----- Original Message -----
From: "Chris Giminez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 02, 2000 6:58 PM
Subject: custom tag - security based on user


> I need to set up security so that a user enter's their user name and
password (from a db table) then
> that user name is used in all queries so they only can see their own data
from the database. Anyone
> know of a custom tag for this that's already done? I didn't see anything
in the Allaire tag gallery
> and the custom tags link at forta.com has been broken for quite some time.
>
> Thanks,
>
> Chris Giminez
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> 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.eGroups.com/list/cf-talk
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