abiodunode
Posts: 10
|
| Posted: 07/17/2008, 3:05 PM |
|
Hello Guys,
I have some pages for different groups of users.
I want a situation whereby users will be directed to some specific pages based on their security groups. I have been struggling on this and would appreciate your urgent assistance.
Also, is there a way i can apply security restriction to menu items. I'm looking at a situation whereby some items on the menu are disabled based on the group the user belongs to.
I will appreciate ur response on this as well.
Thanks.
|
 |
 |
tsgroman
Posts: 64
|
| Posted: 07/17/2008, 8:56 PM |
|
For redirecting users based on security groups at login. You want to use a Select Case statement under the line of code you used to set your BranchID Session variable.
Use the Case statements to response.redirect based on usergroup.
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 07/18/2008, 2:32 AM |
|
Redirect: http://forums.codecharge.com/posts.php?post_id=97689&s_keyword=landing+page
Not knowing you development platform, here is one solution in PhP
, look for the post on landing page.
As for the Menu's
several options like:
- hiding menu options by not slecting the from the database (dtabase driven menu's)
- before show of menu, altering the link to a hash, depending on conditions
.........
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
abiodunode
Posts: 10
|
| Posted: 07/18/2008, 1:45 PM |
|
Hello, house,
I used the Select Case statements as suggested by tsgroman and it worked.
Thanks all for your assistance.
Meanwhile, I am struggling to use ajax feature in refreshing a web page !
Any idea or suggestion is welcome, plsssss.
|
 |
 |
jjrjr1
Posts: 942
|
| Posted: 07/18/2008, 3:09 PM |
|
Hi
Just a suggestion.
In my user table I maintain a field where the login re-direct page can be set on a user byuser basis.
In other words each user can have a differennt login page based on eithr preferences or user type.
If you are interested in that sort of detailed login control and do not mind making a minor change to Common.php, I will show you how I implemented that.
Have fun.
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
jjrjr1
Posts: 942
|
| Posted: 07/18/2008, 3:14 PM |
|
Incidentally, Not only will this method potentially allow a user to select thier login page but also thier default home page. This let's you have the user design their own home page if you want.
_________________
John Real - More CodeCharge Studio Support at - http://CCSElite.com |
 |
 |
|