Fixed wrong password alert (#43)

The session start() function was on the wrong line in the logout.php file. I just changed it to the appropriate line of code, before the session destroy() function.

Co-authored-by: WhyteAsamoah <whyteasamoahgyamfi@outlook.com>
Reviewed-on: http://121.4.94.30:3000/mrlan/LRR/pulls/43
Co-authored-by: YEBOAH MARTHA ASAMOAH <3534763826@qq.com>
Co-committed-by: YEBOAH MARTHA ASAMOAH <3534763826@qq.com>
Bug457-YAAQOB
YEBOAH MARTHA ASAMOAH 2022-07-02 21:44:23 +08:00 committed by mrlan
parent 6831fdcd0f
commit e9a7af1059
1 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
<?php
// Destory sessions & redirect to index
session_destroy();
session_unset();
// Start a new session
session_start();
// Destory sessions & redirect to index
session_destroy();
session_unset();
// Generate a new session ID
session_regenerate_id(true);