Answer the question
In order to leave comments, you need to log in
Disable creation of user sessions in Yii 1.x for some site requests?
The mobile app makes Ajax requests to a Yii 1.x site . In Yii, for each such request, a new user session is started, because the mobile application does not know how to store COOKIES to pass the PHPSESSID to the site.
How to make it so that when requests are made from a mobile application, sessions in Yii do not start? At the same time, I know how to determine exactly the requests from the mobile application. The question is about stopping the session mechanism!
By the way, sessions are stored in the database, the configuration is as follows:
'session' => array(
'timeout' => 32400, // 9 часов
'class' => 'system.web.CDbHttpSession',
'connectionID' => 'db',
'sessionTableName' => 'session',
),
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question