0
我試圖使用CDbHttpSession Yii中的會話數據存儲到數據庫中。然而,Yii似乎並沒有存儲這些信息,只是更新了id。 這裏是一個完整的應用程序日誌:會話數據不保存到數據庫中的Yii
03:23:21.016446 trace system.db.CDbCommand
Querying SQL: SELECT *
FROM `YiiSession`
WHERE id=:id. Bound with :id='9m6bmlf12v4r9e7bleusv1rmp7'
in /YIIPATH/protected/models/LoginForm.php (29)
in
/YIIPATH/protected/controllers/SiteController.php
(115)
in /YIIPATH/index.php (13)
03:23:21.016472 profile system.db.CDbCommand.query
begin:system.db.CDbCommand.query(SELECT *
FROM `YiiSession`
WHERE id=:id. Bound with :id='9m6bmlf12v4r9e7bleusv1rmp7')
03:23:21.017136 profile system.db.CDbCommand.query
end:system.db.CDbCommand.query(SELECT *
FROM `YiiSession`
WHERE id=:id. Bound with :id='9m6bmlf12v4r9e7bleusv1rmp7')
03:23:21.017270 trace system.db.CDbCommand
Executing SQL: UPDATE `YiiSession` SET `id`=:id WHERE id=:oldID. Bound with
:oldID='9m6bmlf12v4r9e7bleusv1rmp7', :id='26h85kqrvrecd67kdf4riahca5'
in /YIIPATH/protected/models/LoginForm.php (29)
in
/YIIPATH/protected/controllers/SiteController.php
(115)
in /YIIPATH/index.php (13)
03:23:21.017291 profile system.db.CDbCommand.execute
begin:system.db.CDbCommand.execute(UPDATE `YiiSession` SET `id`=:id WHERE
id=:oldID. Bound with :oldID='9m6bmlf12v4r9e7bleusv1rmp7',
:id='26h85kqrvrecd67kdf4riahca5')
03:23:21.017766 profile system.db.CDbCommand.execute
end:system.db.CDbCommand.execute(UPDATE `YiiSession` SET `id`=:id WHERE
id=:oldID. Bound with :oldID='9m6bmlf12v4r9e7bleusv1rmp7',
:id='26h85kqrvrecd67kdf4riahca5')
任何幫助將非常感激。謝謝!