CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Redirection based on their Login in CCS

Print topic Send  topic

Author Message
Ted
Posted: 09/21/2002, 7:12 PM

I have read the few out there on how to redirect a user based on his security. I need to do this in CCS. Anyone have a clue. I am using PHP
Ken
Posted: 09/21/2002, 10:20 PM

You can do userlevel redirection like this:

//Custom Code @28-2A29BDB7
if (CCGetSession("GroupID") == 3)
header("Location: YourFormName.php");
//End Custom Code

Place this code in the before show event of the page.
James
Posted: 09/22/2002, 12:51 PM

I use Asp but I would like to know how to redirect the login to a tabel or query only showing records pertaing to the Login.

Each I have ten people that Login and each of them do multiple transactions, I only want them to be able to see their own transactions ...is this posssible?
Nicole
Posted: 09/24/2002, 11:53 PM

Hello,
1. to redirect user to different pages depending on his rights you should modify the value of Redirect variable that stores the page name user to be redirected to and parameter string.
You can modify it in the <Login_page>_DoLogin_OnClick() function in the <Login_page>_events.asp page. E.g.:
If Not IsEmpty(CCGetParam("ret_link", Empty)) Then _
if Session("UserRights") = 1 then
Redirect = "Page1.asp"
end if
...

2. to let users to access their records only you should store user_id field in the table users access to review, add it as Table parameter equals to session variable UserID.

   


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.