動作
Bug #42
進行中
SC
SC
#0002: 無法登入admin
Bug #42:
#0002: 無法登入admin
概述
Some possible reasons:
- SameSite cookie: however, it should affect online(production) version, too
- Session lost after redirect in controller/Admin.php loginCheck()
檔案
SC 是由 Sashiba Chou 於 超過 4 年 前更新
- 被分派者 設定為 Sashiba Chou
SC 是由 Sashiba Chou 於 超過 4 年 前更新
- Firefox: (https) same result
- IE: (https) same result
- Chrome: (https) same result, but show error in common.js
SC 是由 Sashiba Chou 於 超過 4 年 前更新
SC 是由 Sashiba Chou 於 超過 4 年 前更新
- 檔案 commons.png commons.png 已新增
Commons.js error
!commons.png!
SC 是由 Sashiba Chou 於 超過 4 年 前更新
看起來應該是
loginCheck() --> $result==true and session->userdata is set
--> redirect(BASE_URL.'/admin', 'refresh')
--> session lost
目前可登入
解法:
!123.png!
Codeigniter session data lost after redirect
https://stackoverflow.com/questions/14472869/codeigniter-session-data-lost-after-redirect
SC 是由 Sashiba Chou 於 超過 4 年 前更新
SC 是由 Sashiba Chou 於 超過 4 年 前更新
- 狀態 從 New 變更為 Resolved
- 完成比例 從 0 變更為 50
SC 是由 Sashiba Chou 於 超過 4 年 前更新
- 狀態 從 Resolved 變更為 In Progress
Still can not login despite of modification of
- hoosk/system/libraries/Session/Session.php
ini_set('session.id', $params['cookie_name']);
----Tmp solution----
- Add code in index.php
SC 是由 Sashiba Chou 於 超過 4 年 前更新
If we added
session_start();
at index.php
it will cause Hoosk unable to manipulate 'hoosk_sessions' table in the database
動作