C
C
cryp242019-06-15 01:03:35
Laravel
cryp24, 2019-06-15 01:03:35

Laravel how to resolve cookie confusion?

I will try to describe the situation as clearly as possible, since it is not even clear how to google this.
On windows openserver There are two projects on Laravel, both projects have a database. In the first project, a couple of scripts are hung on cron every 10 minutes, the execution of which takes about a minute.
In the crown, the launch line is: php /Coding/Web/OSPanel/domains/hotcoins/artisan schedule:run. In Laravel, scripts are executed in tasks not by calling classes, but by launching a link, for example , proect1/script.php.
I work in the second project, and when I access the second project in the first minute of every ten minutes, I get an error that there are no tables in the database, since the project is trying to connect to the database of the first project. The error shows that cookies from the first project are being used. We have to wait a minute until the scripts work :)) to continue working on the second project. In general, xs, even in which direction to dig, is it in cookies at all, is it worth changing the default paths for each project somewhere, and where if so?
I'm adding a screenshot of the error, maybe you can tell something from it
5d077d6c6d865386439575.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Wells, 2019-06-17
@Alex_Wells

Get rid of links.

M
Mikhail, 2019-06-17
@AkDF

check the name of the cookie in the Laravel config/session.php config (perhaps they are the same in both projects)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question