Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question