Integrating Logon with an existing system

Permalink
I need to build a new site (sub-site) and would like to use C5. However I have the requirement to use the existing site's user authentication. I am relatively new to C5 and don’t want to spend weeks pawing over code, and if possible I would like to leave the core C5 intact.

I want to implement the following scenarios:

1. Existing Site Logon->browse existing site->link to C5 site passing authentication->browse C5->link back to Existing site

2. C5 site logon->link to existing site logon->return to C5 site home page->browse C5 site->link to existing site passing authentication.

The existing site uses a cookie based PHP session.

Does anyone know where I can get information on how to do this? An example would be fantastic.

 
HepCat replied on at Permalink Reply
I am also looking for a solution similar to this. I have an existing web application that uses session cookies to maintain authentication.

Both this web application and the C5 site exist on the same domain and therefore have access to the same cookies.

My question is this... How can I get C5 to accept an existing session cookie once the user has logged into the web application?

I need for users to have the ability to log in once (through the existing web application) and bounce back and forth from the C5 site and the web app.
jero replied on at Permalink Reply
jero
Making the assumption that you're prepared to synchronize your credentials between the two systems, you could try doing an AJAX POST request to index.php/login/do_login passing the uName and uPassword values when your other login form is submitted.
wcravens replied on at Permalink Reply
wcravens
Sounds like a viable solution.

Has anyone written up a HowTo on this method? If not I may experiment with it and see if I can work up enough detail for a HowTo.