CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> Wishes

 Global Access to the Login Page Setting

Print topic Send  topic

Author Message
Posted: 05/10/2012, 6:58 AM

Under Project Settings -> Security, there is the Login Page directive.
Would like access to that setting through either a globally defined
variable or function such as CCGetLoginPage().

This becomes especially handy when the login page resides under a
subdirectory such as /members/login.ccp or /accounts/login.ccp, which
nearly ALL of our sites do.

Oftentimes we're finding that in cases where we need to do custom
redirects we're having to hard-code in that subdirectory value, which of
course makes the application less portable. We currently keep a
database field with the value and pull from there. We can avoid that
with a simple global variable for that CCS setting.

In the Site XML that value is an attribute:
loginPage="members/login.ccp". In Common that value is hard-coded at
code parsing time in the CCSecurityRedirect() function as: $Link =
ServerURL . "members/login.php". How about instead at code parsing time
simply define it: define("LoginPage", "members/login.php")

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

Internet Database

Visually create Web enabled database applications in minutes.

Home   |    Search   |    Members   |    Register   |    Login

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