I am using session_start() on index.php and for some reason sometimes
it'll fail. No warnings, no errors, no notices, not even after
prepending error_reporting(E_ALL) and ini_set('display_errors', TRUE)
before session_start() do I see anything, it just plain dies.
I used LiveHTTPHeaders to verify that I am getting a 200 OK response,
thus everything seems OK except that it's dying on session_start().
Sometimes.
I'll go and refresh the page and then POOF everything is just fine, the
page delivers. I'll refresh a few more times to test and then after 2
- 3 times it fails again. Then works again. Then fails again. On and
on intermittently.
I can't find anything online that addresses such an unusual problem,
but what on earth do I do?
Phil 6 1949
comp.lang.php wrote:
I am using session_start() on index.php and for some reason sometimes
it'll fail. No warnings, no errors, no notices, not even after
prepending error_reporting(E_ALL) and ini_set('display_errors', TRUE)
before session_start() do I see anything, it just plain dies.
I used LiveHTTPHeaders to verify that I am getting a 200 OK response,
thus everything seems OK except that it's dying on session_start().
Sometimes.
I'll go and refresh the page and then POOF everything is just fine, the
page delivers. I'll refresh a few more times to test and then after 2
- 3 times it fails again. Then works again. Then fails again. On and
on intermittently.
I can't find anything online that addresses such an unusual problem,
but what on earth do I do?
Finally was able to produce the fatal error:
Fatal error: session_start(): Failed to initialize storage module: user
(path: /var/lib/php/session) in
/var/www/html/tools/app/include/code_header_script.inc.php on line 21
>
Phil
comp.lang.php wrote:
comp.lang.php wrote:
I am using session_start() on index.php and for some reason sometimes
it'll fail. No warnings, no errors, no notices, not even after
prepending error_reporting(E_ALL) and ini_set('display_errors', TRUE)
before session_start() do I see anything, it just plain dies.
I used LiveHTTPHeaders to verify that I am getting a 200 OK response,
thus everything seems OK except that it's dying on session_start().
Sometimes.
I'll go and refresh the page and then POOF everything is just fine, the
page delivers. I'll refresh a few more times to test and then after 2
- 3 times it fails again. Then works again. Then fails again. On and
on intermittently.
I can't find anything online that addresses such an unusual problem,
but what on earth do I do?
Finally was able to produce the fatal error:
Fatal error: session_start(): Failed to initialize storage module: user
(path: /var/lib/php/session) in
/var/www/html/tools/app/include/code_header_script.inc.php on line 21
Apparently I am not alone: http://bugs.php.net/bug.php?id=25876
Phil
Phil
we can go arround this error by simply passing session_id in url.
PHPSESSID
comp.lang.php wrote:
comp.lang.php wrote:
comp.lang.php wrote:
I am using session_start() on index.php and for some reason sometimes
it'll fail. No warnings, no errors, no notices, not even after
prepending error_reporting(E_ALL) and ini_set('display_errors', TRUE)
before session_start() do I see anything, it just plain dies.
>
I used LiveHTTPHeaders to verify that I am getting a 200 OK response,
thus everything seems OK except that it's dying on session_start().
>
Sometimes.
>
I'll go and refresh the page and then POOF everything is just fine, the
page delivers. I'll refresh a few more times to test and then after 2
- 3 times it fails again. Then works again. Then fails again. On and
on intermittently.
>
I can't find anything online that addresses such an unusual problem,
but what on earth do I do?
Finally was able to produce the fatal error:
Fatal error: session_start(): Failed to initialize storage module: user
(path: /var/lib/php/session) in
/var/www/html/tools/app/include/code_header_script.inc.php on line 21
>
Apparently I am not alone: http://bugs.php.net/bug.php?id=25876
Phil
Phil
theCancerus wrote:
we can go arround this error by simply passing session_id in url.
PHPSESSID
Actually that doesn't work either, it dies all the same if PHPSESSID is
in the query string or not (?PHPSESSID=...)
Phil
comp.lang.php wrote:
comp.lang.php wrote:
comp.lang.php wrote:
I am using session_start() on index.php and for some reason sometimes
it'll fail. No warnings, no errors, no notices, not even after
prepending error_reporting(E_ALL) and ini_set('display_errors', TRUE)
before session_start() do I see anything, it just plain dies.
I used LiveHTTPHeaders to verify that I am getting a 200 OK response,
thus everything seems OK except that it's dying on session_start().
Sometimes.
I'll go and refresh the page and then POOF everything is just fine, the
page delivers. I'll refresh a few more times to test and then after 2
- 3 times it fails again. Then works again. Then fails again. On and
on intermittently.
I can't find anything online that addresses such an unusual problem,
but what on earth do I do?
>
Finally was able to produce the fatal error:
>
Fatal error: session_start(): Failed to initialize storage module: user
(path: /var/lib/php/session) in
/var/www/html/tools/app/include/code_header_script.inc.php on line 21
>
Apparently I am not alone: http://bugs.php.net/bug.php?id=25876
Phil
Phil
"comp.lang.php" <ph**************@gmail.comha scritto nel messaggio
news:11*********************@f1g2000cwa.googlegrou ps.com...
I am using session_start() on index.php and for some reason sometimes
it'll fail. No warnings, no errors, no notices, not even after
prepending error_reporting(E_ALL) and ini_set('display_errors', TRUE)
before session_start() do I see anything, it just plain dies.
I used LiveHTTPHeaders to verify that I am getting a 200 OK response,
thus everything seems OK except that it's dying on session_start().
Sometimes.
<?php
session_start();
include("other_file.php");
echo "......etc
this code is good
<?php
include("session_start.php");
this code is NOT found correctly
Gufo Rosso wrote:
"comp.lang.php" <ph**************@gmail.comha scritto nel messaggio
news:11*********************@f1g2000cwa.googlegrou ps.com...
I am using session_start() on index.php and for some reason sometimes
it'll fail. No warnings, no errors, no notices, not even after
prepending error_reporting(E_ALL) and ini_set('display_errors', TRUE)
before session_start() do I see anything, it just plain dies.
I used LiveHTTPHeaders to verify that I am getting a 200 OK response,
thus everything seems OK except that it's dying on session_start().
Sometimes.
<?php
session_start();
include("other_file.php");
echo "......etc
this code is good
and this code breaks sometimes, producing a fatal error involving the
supposed value of session.save_handler, which in php.ini is "files" but
it thinks it's "user" even if I set it via ini_set() to "files" anyway
<?php
include("session_start.php");
this code is NOT found correctly
Why would I write that, that is obviously wrong This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: |
last post by:
I get the following error message.
Warning: session_start(): open(/tmp\sess_9c7a721569fd097dc4dad85162984ebc,
O_RDWR) failed: No such file or directory (2) in...
|
by: Chris Allen |
last post by:
Hi
I'm new to PHP and I'm trying to create a Login Form. Once the user has
logged in then he shouldn't have to log in again. The trouble is I'm getting
a new session ID between every page and so...
|
by: Trogdor |
last post by:
I set up a server on an AMD 650 machine running gentoo linux.
I installed Apachie 2, MySQL 4.1 and PHP 4.3.11
I use another computer on my local net (192.168.0.x) to access the server as a...
|
by: M O J O |
last post by:
Hi,
I have a test application, that is a Web.config, a Global.asax,
default.aspx and a final.aspx page.
When a user enters my application, I want session_start to always
redirect him to the...
|
by: Niklas Uhlin |
last post by:
Someone please explain why Session_Start fires multiple times /
retains SessionID values between sessions, when you open an ASP.NET
page from MS Word. For details of the problem, see below:
1....
|
by: Gabriel Lozano-Morán |
last post by:
Is there any particular reason why the Session_Start() event gets triggerend
by each aspx page request?
Details:
Windows XP Pro SP2
..NET Framework v1.1.4322
C#
SessionState set to mode...
|
by: aabid |
last post by:
We have a dotnet 2.0 application with sql server 2005 at the backend.
Since yesterday morning we get the above message intermittently. At one
moment I am connected and the page loads perfectly...
|
by: three-eight-hotel |
last post by:
I'm somewhat of a newbie to PHP coding, but have developed a site
using the technology, and have been pleasantly surprised by the
capabilities offered. I am more comfortable in the ASP world,...
|
by: greg |
last post by:
Written in Asp.Net 2.0
The session_start fires on Development server running withing Visual Studio
2005
and also if access web site via localhost on development machine.
But if copy to...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| | |