O
O
Oleg Lysenko2016-07-14 12:16:56
Yii
Oleg Lysenko, 2016-07-14 12:16:56

How can styles and scripts fly off after working with a Yii2 session?

Hello. There is a very strange problem, after I write something to the session, styles and scripts that are pulled from the vendor fly off, those that are clearly written in AppAsset do not fly off. What could be the problem? At what files are disconnected and at least reload the page, at least not - they are not connected back, they are connected only after the session is cleared.
Here is the code after which this happens.

$session = Yii::$app->session;
                    $session['booking'] = $order_id;
                    $session['booking_liqpay'] = $order_id.mt_rand(9999,999999999);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2016-07-14
@qonand

There is no connection between sessions and assets in Yii2. Most likely that you are doing something else (perhaps when monitoring data in the session) what causes this situation, is there any information in the log?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question