Bug #78741 [Fbk->Csd]: Sessions aren't working
| From: | sandeep251088 at gmail dot com | Date: | Thu, 24 Oct 2019 06:43:26 +0000 |
| Subject: | Bug #78741 [Fbk->Csd]: Sessions aren't working | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-223449@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78741&edit=1
ID: 78741
User updated by: sandeep251088 at gmail dot com
Reported by: sandeep251088 at gmail dot com
Summary: Sessions aren't working
-Status: Feedback
+Status: Closed
Type: Bug
Package: Apache2 related
Operating System: Linux
PHP Version: 7.2.23
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2019-10-23 11:55:08] 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-23 07:27:39] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78741&edit=1