Livinus
Posts: 48
|
| Posted: 04/29/2009, 12:55 PM |
|
I use CC4.1 ASP/VBScript and I want to achieve the following:
1. Be able to allow each customer that visit s our site to login and be able to view information related to the particular customer such as billng for services/customer transactions.
2. Be able to allow employees to login and be able to administer the site and update data-driven site contents and to be able to have a log of which employee made what changes to the database
3. Be able to allow registered forum members to login and contribute to the discusions on the forum.
Essentially three different login instances.
I was able to achieve this by treating each of the three cases as a separate project but I see that as a crude way of going about it.I believe there should be a more elegant and more professional way of getting around it. I would appreciate any help
|
 |
 |
damian
Posts: 838
|
| Posted: 04/29/2009, 2:33 PM |
|
why three projects?
there is a level field in the authentication builder.
eg. require a level of
2 for forum access
3 for forum + customer access
10 for admin access
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
Livinus
Posts: 48
|
| Posted: 04/29/2009, 3:33 PM |
|
Hi Damian, thanks for your response. There are actually three login pages but they all have login and passwords stored on the same table. The customers will see something like customer login, and then the forum-also a login page and so for admin. If I understand you well, you are assuming a single login page.
|
 |
 |
damian
Posts: 838
|
| Posted: 04/29/2009, 10:06 PM |
|
i assuming a single login. why do you need 3 logins? you can have a single login page and if a user is not logged in and tries to access a restricted area it will take him to the login page - just like this forum does if you try to reply to a message when not logged in. it will then return you to the page you were trying to access....
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
Livinus
Posts: 48
|
| Posted: 04/30/2009, 3:50 PM |
|
By the design of the site, the customer login is on the home page while the forum and admin are accessed by a hyperlinc that loads the forum/admin page whose restricted property loads a login page for authentication of forum/admin users. So essentially at least two login forms are required though I am currently using three
|
 |
 |
damian
Posts: 838
|
| Posted: 04/30/2009, 4:00 PM |
|
you can define the login page in your project as any page that has a login component. if a user is not logged ina nd tries to access a restricted page they will get redirectd to this login page and after a successful login they will get directed back to their destination/restricted page.
you could then have restricted pages at mysite.com/forum and mysite.com/cutomer and mysite.com/admin with a single login page at mysite.com
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
Livinus
Posts: 48
|
| Posted: 04/30/2009, 4:20 PM |
|
Damian, thank you very much for your assistance, I will do some redesign of the site to apply your suggestions. I have no doubt that it will work fine. CCS is an awesome tool and daily i begin to realize that with it we are only limited by our skill level and creativity as to what we can achieve with it. I want to know if you have implemented the CCS's ajax tabbed dialog-for example breaking data entry into classified segments(for instance in a HRM package you may wish to break the employee info into personal,official &contact)-and be able to fill the forms in turn but submit all the info at the same time using a single button just as we can achieve using VB or other window application development tools
|
 |
 |
damian
Posts: 838
|
| Posted: 04/30/2009, 6:48 PM |
|
nope - no ajax by me... others have with *mixed* success.
i'm not sure how well supported ajax is as yet...
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
Waspman
Posts: 948
|
| Posted: 05/04/2009, 1:05 AM |
|
I think of user login as a matter of what menu items (or buttons) are available to the user. Not so much a redirect to other pages. Obviously there is a need to pre-load variables and store them however you want, cookies or sessions. Recently I've added user type to my options of user definitions. So a user can have a level access of general and yet still be assigned special privileges or responsibilities. I have a user who has Teacher level access who also has manager type so he can manage his colleagues, so he's both Teacher and Manager.
In the same project I have used Tabs extensively to break up student profile data. There have been some problems, but probably more to do with me asking too much than CCS. I also use the user type approach to control tab visibility and that works great.
T
_________________
http://www.waspmedia.co.uk |
 |
 |
damian
Posts: 838
|
| Posted: 05/04/2009, 5:15 AM |
|
ha!
i was going to refer him to you waspman but i thought it might be a bit presumptuous... :)
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |
Waspman
Posts: 948
|
| Posted: 05/04/2009, 11:10 AM |
|
_________________
http://www.waspmedia.co.uk |
 |
 |
Livinus
Posts: 48
|
| Posted: 05/04/2009, 5:20 PM |
|
Hi Waspman,
Thanks for your contribution. You guys have changed my initial understanding of the working of the CCS security and I am better for it. I am grateful for that. Now concerning the AJAX tabbed dialog/tabbed view implementation, i would appreciate further assistance.
|
 |
 |
damian
Posts: 838
|
| Posted: 05/04/2009, 8:21 PM |
|
best to start a new thread and post a specific question
_________________
if you found this post useful take the time to help someone else.... :)
|
 |
 |