You are viewing version #11 of a page entitled Cross Domain Login. The page Owner is admin and the last changes were made by admin 13 months ago. There are 659 words in this revision and it has been viewed 445 times.
This page is Protected from any changes.
Cross Domain Login
Overview
In the event that your server hosts multiple domains and you wish to secure a folder on a domain other than the website on which the ppSD2 admin control panel is located, a cross-domain login is required.
Important: You can only install ppSD2 once per license, however if all of your domains are hosted on the same server and can access the same MySQL databases, you can secure folders on different domains and then manage those secure areas using a single license of ppSD2, allowing users to log into secure areas on multiple domains with a single login form.
ppSD2 Licensing Terms: Click here
Example
| Component | URL |
|---|---|
| Admin Control Panel | http://www.yoursiteA.com/ppSD2/admin |
| Desired Secure Area | http://www.yoursiteB.com/members |
Pre-requisites
In order for the cross-domain login feature to work, the following requirements must be met:
- All of your website domains must be virtual domains, meaning that they are hosted on the same server.
- You must be able to access the same MySQL databases from any domain hosted on your server.
Setup
If the above pre-requisites have been met, you can use the cross domain login feature by following these steps:
- From the ppSD2 admin control panel, secure the folder that you wish to use as the secure area (more information on securing areas)
- While securing the folder, ensure that you tick the checkbox entitled “Is this on a subdomain or virtual domain?”
- A field named “Base vDomain” will appear: enter the URL of the domain on which this folder is located WITHOUT the “http://”
- Example: if the folder is located at “http://www.yourdomainB.com/members/“, you would input “yourdomainB.com”
- Using a text editor such as Notepad, open the file entitled cda_login.php and ensure that line 18 is properly set to the absolute path to the ppSD2 folder
- The “cda_login.php” file should be located within the “ppSD2” directory of your website.
- Using an FTP client, create a folder named “ppSD2” on the domain on which the new secure area is located (in the above example that would mean “yourdomainB.com”)
- Copy the cda_login.php file into the newly-created “ppSD2” folder
When a user logs into his/her account, the program will automatically detect if the user has access to a secure area that is on a virtual domain and will redirect the user accordingly.
Very Important Things to Remember
- Users will only be logged into a secure area if they have access to that secure area.
- All users belonging to a secure area on a domain other than your primary domain (where your ppSD2 admin control panel is installed) must be managed from the ppSD2 admin control panel on your main domain. In other words, your license only allows you to have one instance of the ppSD2 admin control panel installed.
- Users will need to log in through the login.php file on your primary domain (in the above example, “yourdomainA.com”)
- Note: You can create a login form on your secondary domain, however the form “action” must be your primary domain.
- Example: <form action=”http://www.yoursiteA.com/ppSD2/login.php” method=”post”>
- In other words, you CANNOT create a copy of the login.php file on the secondary domain without first purchasing an additional license of ppSD2!
- The same rules apply for registrations and lost passwords: all must be process through the primary domain. In other words, you CANNOT create copies of those files without the purchase of an additional ppSD2 license.
- Remember that every installation of ppSD2 requires a new license! The only file that you are licensed to copy to a separate domain from the primary domain on which the program is installed is the cda_login.php file.
This page last modifed by admin @ 05 August 2009 17:44. Created on 13 July 2009 17:17 



|