B
bender
client's application is running on IIS5, created with FP2003 and ASP
6 departments, each department has a different password.
loggin in assigns their session(authenticated) variable to 1 thru 6,
or 9 for a manager who can access all departments.
variable comes from an access d/b with 3 fields, user, password, and
level.
at the begining of each department page i have an include file inside
a logic test:
<%If Session("Authenticated") < 9 Then%>
<!-- #include file="export.inc" -->
<%End IF%>
this allows managers etc., who have level 9 to access all pages, and
the include file tests to check if the user has the proper level to be
in the page, or they are sent back to the login page.
works fine....except....
now the client wants some users to have access to more than one page
without having to log into each page separately. so some users might
have access to department 1 and 4, or 3 and 2 and 5, etc., etc.
I'd like to make a manager's page with radio buttons that can give yes
or no values to additional fields in their access database so that ppl
can have multi-department access. then, instead of a "level" field in
access, i would add 6 yes or no fields for each department, and (in an
access query table) a concatenated field which would be a combination
of the 6 fields. so it's value might be something like: 101011
which would give ppl access to department 1, 3, and 5 and 6
then i would just have to figure out some asp logic test at the
beginning of each field to test authentication (tho how, i'm not sure
yet)
this is my initial strategy, which usually turns out to be pretty
bone-headed.
any suggestions for a better plan, or an idea for a logic test that
can test one of six values in six string value?
and no, the client does not want to use NT authentication where i
could use groups, etc.
thanks,
Larry
- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown."
6 departments, each department has a different password.
loggin in assigns their session(authenticated) variable to 1 thru 6,
or 9 for a manager who can access all departments.
variable comes from an access d/b with 3 fields, user, password, and
level.
at the begining of each department page i have an include file inside
a logic test:
<%If Session("Authenticated") < 9 Then%>
<!-- #include file="export.inc" -->
<%End IF%>
this allows managers etc., who have level 9 to access all pages, and
the include file tests to check if the user has the proper level to be
in the page, or they are sent back to the login page.
works fine....except....
now the client wants some users to have access to more than one page
without having to log into each page separately. so some users might
have access to department 1 and 4, or 3 and 2 and 5, etc., etc.
I'd like to make a manager's page with radio buttons that can give yes
or no values to additional fields in their access database so that ppl
can have multi-department access. then, instead of a "level" field in
access, i would add 6 yes or no fields for each department, and (in an
access query table) a concatenated field which would be a combination
of the 6 fields. so it's value might be something like: 101011
which would give ppl access to department 1, 3, and 5 and 6
then i would just have to figure out some asp logic test at the
beginning of each field to test authentication (tho how, i'm not sure
yet)
this is my initial strategy, which usually turns out to be pretty
bone-headed.
any suggestions for a better plan, or an idea for a logic test that
can test one of six values in six string value?
and no, the client does not want to use NT authentication where i
could use groups, etc.
thanks,
Larry
- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown."