Z
Z
ZZnOB2014-06-15 15:19:07
PHP
ZZnOB, 2014-06-15 15:19:07

How to log in to a third-party site using php?

There is a task for the user to click on the link posted on site A, go to site B and automatically log in with a specific login / password.
For example, on my site (example.com) a user clicks on a link and gets to the site orion10.ru authorized with a specific login password.
How to implement this using php?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Arkh, 2018-11-22
@AlekseyArh

Using curl, we log in to that site, get a cookie, write it to our user, then redirect the user to the site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question