Link to home
Start Free TrialLog in
Avatar of RickyGtz
RickyGtz

asked on

Dreamweaver cs3 connecting users , defining levels

Hello there, I am fairly new on dreamweaver and I am seeking help on how to use the connect user, disconnect user, restrict access to page.  By playing around I am able so far to create a login page and when succesfully username and password redirect to a main page, howver I need to create also a new level not admin , and I need other level, and persahps oteher main2 pager.. Much help is appreciated. Code, Links to a good tutorial on this, or an explanation.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RickyGtz
RickyGtz

ASKER

Hi thanks for your response. Can you briefly describ how can I use dreamweaver toolbox to create levels, see, I have the admin level 1  working, but the user (level 2 ) do I need to create another page for user,? or do I need to create another login transaction, this seems kind of confussing
>> Can you briefly describ how can I use dreamweaver toolbox to create levels

You create the levels in your database FIRST.  The wizards will only work properly if you do it that way.

Once you have the database set up the way you want it, you need to go to the developer toolkit control panel and click "Login Settings"

From there, choose Validate Against Username, password and access level in the Options tab

Set the fields in the Database tab

Set the session variables in the Session tab

In the User Level tab, you set the default AND user-level-specific redirection options for the login.

Once you have done all of that, you can use the Login Form Wizard to create a form to test the login behavior.
Thanks , Now I understand it!
Regarding my other doubt,, do I need to create separate login pages, (forms) to login as an admin or user?
Or Can I use a same form to query one table on database ?
>> do I need to create separate login pages, (forms) to login as an admin or user?
>> Or Can I use a same form to query one table on database

You should be able to use one login form to control everything.  The userlevel will be set in a session and that controls what happens after the user is logged in.  But the act of the login is the same no matter who is trying it, right?
Well , no, I am having different loggedin page for admin and user , so It redirects diferent.
Read my other answer.  You can define the redirection at the application level and use the same form to handle both types of users.  Check the Control Panel for the Developer's Tolkit and read the help files for Login Settings.
ok thanks