cancel
Showing results for 
Search instead for 
Did you mean: 

Integration of a core php website to existing magento 2 website without asking for login credential.

Integration of a core php website to existing magento 2 website without asking for login credential.

I have a website for pets food made in magento2. now I want to create another website in CodeIgniter for another service like doctors, pets care etc.

I want existing site user to use services of my new CodeIgniter website without asking for login if they are already logged in in Magento site. but if they are not logged in then it will ask them to log in for this new website with the existing Magento website credentials.

Is there any way to do so? actually, I am working in Codeigniter not in Magento and don't know if it's possible to integrate a core site into existing magento2 like this.

1 REPLY 1

Re: Integration of a core php website to existing magento 2 website without asking for login credent

Hi @shivam_chauhan1 

 

Well i don't think so directly it will work - you need to play with session tricks.

 

As you mentioned like someone logged in into magento site has to logged in to codeginiter automatically - so you need to work alot with session and tokenization.

 

Where in someone already login on the Magento site and goes to codeginiter site - then at the same time you need to fetch those login credentials or i would say a accessible session which allows customer to auto-login on the codeginiter site.

 

You will require a global session or active session on both the site.

 

Regarding working on this concept - i think you need to work on Magento application as well - to pass the session data or you need to find the session data from the codeginiter site using API or any custom programming script.

 

Note : this is based on my experience and suggestion - so there may be another option available for the same.

 

Hope it helps

if issue solved,Click Kudos & Accept as Solution