php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78741 Sessions aren't working
Submitted: 2019-10-23 07:27 UTC Modified: 2019-10-24 06:43 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: sandeep251088 at gmail dot com Assigned:
Status: Closed Package: Apache2 related
PHP Version: 7.2.23 OS: Linux
Private report: No CVE-ID: None
 [2019-10-23 07:27 UTC] sandeep251088 at gmail dot com
Description:
------------
A web page with normal PHP script works fine.
Now added session_start() to maintain a login/logout system.
Web page works fine for some time after login, but after some different page views (after login) and form submissions ($_POST, $_REQUEST) activities, web page remain in loading state forever.

Test script:
---------------
// Without session
echo 'Hello'; // works fine, and loads web page instantly

// With session
session_start();
$_SESSION['var'] = 'some_value';

if (form_submitted()){
 // some activity
}

Expected result:
----------------
// With session
session_start();
$_SESSION['var'] = 'some_value';

if (form_submitted()){
 // some activity
}

// Should go smooth, no web page loading forever


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-10-23 11:55 UTC] sjon@php.net
-Status: Open +Status: Feedback
 [2019-10-23 11:55 UTC] sjon@php.net
well sessions work in general, but apparently they don't work for you. What session.save_handler do you use? What is is in session.save_path ?
 [2019-10-24 06:43 UTC] sandeep251088 at gmail dot com
-Status: Feedback +Status: Closed
 [2019-10-24 06:43 UTC] sandeep251088 at gmail dot com
What session.save_handler do you use? 
- It is default: files
What is is in session.save_path ?
- Tried both system's default and own custom, both didn't work.

For now closing ticket, as there is some issue from DB end, once that resolved, will check sessions again, and report if they don't work that time.

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 04 11:01:30 2024 UTC