CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 PAGE REDIRECT BASED ON USER GROUP

Print topic Send  topic

Author Message
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.
View profile  Send private message
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.
View profile  Send private message
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
View profile  Send private message
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.
View profile  Send private message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.