CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 redirect after login based on GroupID

Print topic Send  topic

Author Message
viktor
Posted: 06/01/2004, 7:09 AM

I know it was somewhere in the forum but I can not find it :*)

How can I redirect a user after succesfull log in to a specific page based on his / her GroupID

Thanks!
Anothersledhead


Posts: 44
Posted: 06/01/2004, 12:03 PM

Put the following custom code in the before show event of your redirect page.

//Custom Code @2-1360E090
if(CCGetSession("GroupID") == "")
{
header("Location: login.php");
}
elseif (CCGetSession("GroupID") == 1)
{
header("Location: group_one.php");
}
elseif(CCGetSession("GroupID") == 2)
{
header("Location: group_two.php");
}
//End Custom Code

Hope this helps!!!
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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