jagguy
asked on
How do I automatically login to another database from a current website in cakephp
In cakephp I can login to a website no problem.
What I need to do is login and then click a button that will send me another cakephp website with its own login.
This works fine (on my pc) but I I need to automatically login to the website without having to login again
echo $this->Html->link( 'link!', 'http://127.0.0.1/maths/numeracyStudents/dashboardst');
What I need to do is login and then click a button that will send me another cakephp website with its own login.
This works fine (on my pc) but I I need to automatically login to the website without having to login again
echo $this->Html->link( 'link!', 'http://127.0.0.1/maths/numeracyStudents/dashboardst');
Use cookies to do. I worked and done for one client website.
Ref. https://www.experts-exchange.com/questions/28688584/Login-Redirect-To-Sub-Domain.html
https://www.experts-exchange.com/articles/11909/PHP-Sessions-Simpler-Than-You-May-Think.html
Ref. https://www.experts-exchange.com/questions/28688584/Login-Redirect-To-Sub-Domain.html
https://www.experts-exchange.com/articles/11909/PHP-Sessions-Simpler-Than-You-May-Think.html
Logan,
How does your solution cover this part?:
The server needs to make the connection to the other site, not the client
How does your solution cover this part?:
What I need to do is login and then click a button that will send me another cakephp website with its own login.
The server needs to make the connection to the other site, not the client
ASKER
Hi,
Thanks for the replies
Without an example in cakephp I cant spend hours fiddling and hoping something will work.
This either can be done or it cant. If it can can someone point me to an example please.
Thanks for the replies
Without an example in cakephp I cant spend hours fiddling and hoping something will work.
This either can be done or it cant. If it can can someone point me to an example please.
Of course it can be done but how I've done it may not work for your implementation.
I have a class I've called proxy that handles all the CURL calls. It maintains the cookies etc.
I'll post the code of that class soon when I'm at my laptop
I have a class I've called proxy that handles all the CURL calls. It maintains the cookies etc.
I'll post the code of that class soon when I'm at my laptop
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The server needs to make the connection to the other site, not the client
In the first website, i login and store the details using cookie and retrieve in second website on the first page.
In the first website, i login and store the details using cookie and retrieve in second website on the first page.
Can you show a code example?
So in your controller, is there a specific action that initiates this?
?