|
 |
asp_web_howto thread: How to design the Login pages?
Message #1 by achiu@m... on Mon, 18 Jun 2001 14:16:26
|
|
Hi there,
I posted this message last week but received no response, hope this time I
can get some help out there. Thanks in advance.
Our website has two parts, Part_A is for students(Requires student name
and id to login. Name and id in sql server DB), Part_B is for the members
(Requires member name and password to login. Name and password in sql
server DB). We now want to open one section(named Career) of the Part_B to
the students. The students can go to the Career section of Part_B from
Part_A where they get access but the students will not have further
permission to view any other pages of Part_B. Any suggestions and codes
will be appreciated.
Alan
Message #2 by slau@p... on Tue, 19 Jun 2001 20:26:12
|
|
Check your last post "Security and Permission" issues, I detailed it there.
In short:
Have four fields in your table: Name, IDNum, PassCode, Status.
Status is either Member or NonMember. Logging in 2x is a pain for any user.
Try to keep it to one login.
Page a: You need to save the status of the logged in user in a session
variable ie.
Session("Status") = objRS("Status")
Page B:
Careers section
<%if Session("Status") = "Member"%>
Rest of page goes here...
<%end if%>
Good luck
Sandra
> Hi there,
>
> I posted this message last week but received no response, hope this time
I
> can get some help out there. Thanks in advance.
>
> Our website has two parts, Part_A is for students(Requires student name
> and id to login. Name and id in sql server DB), Part_B is for the members
> (Requires member name and password to login. Name and password in sql
> server DB). We now want to open one section(named Career) of the Part_B
to
> the students. The students can go to the Career section of Part_B from
> Part_A where they get access but the students will not have further
> permission to view any other pages of Part_B. Any suggestions and codes
> will be appreciated.
>
> Alan
|
|
 |