link between 2 app - Forum

Forum Navigation
You need to log in to create posts and topics.

link between 2 app

Hi All,

I have 2 app for which the user must log in to access. But app1 can call directly app2, in this case I would like to avoid login again when entering in app2.

What do you suggest to do to keep the app2 secure, because a parameter in the url is not enough safe ?

@phil78 are both apps under the same domain? If so, you can save and load data using Local Storage.

susan has reacted to this post.
susan

Hi Luis, they are on the same server but not on the same domain. My idea was to send a parameter, in this case I could check the PHP session key created in the app1 cookies. But I don't know how to read the cookies of another application?

@phil78 you can't share cookies between different domains. It's a basic security measure all web browsers include.

Check this:
https://stackoverflow.com/questions/12370495/share-a-cookie-between-two-websites

Regards.

Thank you @luishp, finally I will manage with the parameters of the url with encrypted data.

Regards

luishp has reacted to this post.
luishp