M
M
Mikhail Shatilov2014-07-02 19:15:17
PHP
Mikhail Shatilov, 2014-07-02 19:15:17

How to sync data between 2 sites?

There are 2 domains: domen1.ru, domen2.ru. opencart system. The base is common.
How to make a division into domains, given that when ordering on domain1.ru, the order should be displayed on domain2.ru + if authorized on domain2.ru, then on domain1.ru too?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid, 2014-07-02
@iproger

The answer to both questions is the same: one database.
1. The order is stored in the database and is visible from both sites (it is worth making a note at the order on which of the two it was made).
2. The session is stored in the database, the session cookie is forced for the second domain

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question