ข้อมูลการ login ที่เกิด จาก localhost นั้น จะถึงดึงไปใช้กับ login หากเรียกหน้าเว็บจาก web browser ในส่วนของแม่ข่ายโปรแกรมที่เขียนขึ้นจะเอา session ขอ ง localhost ไปใช้แทน
ผลที่เกิดขึ้นคือ
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: check_school
Filename: models/user_model.php
Line Number: 34
แล้วมาลองดูกัน
แก้ Session libraries
line 92:
$this->sess_delete_after_browser_close = false; // adding this code
line 94: elseif($this->sess_expiration == -1) //Adding elseif statement
{
$this->sess_expiration = 60*60*24;
$this->sess_delete_after_browser_close = true;
}
แก้ confgi.phpline 235 :
$config['sess_expiration'] = -1;
0 ความคิดเห็น:
แสดงความคิดเห็น