#48412 [Com]: session_start error send internal server error 500
| From: | plasmapermanent at msn dot com | Date: | Sun, 31 May 2009 14:15:44 +0000 |
| Subject: | #48412 [Com]: session_start error send internal server error 500 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-137922@lists.php.net to get a copy of this message | ||
ID: 48412
Comment by: plasmapermanent at msn dot com
Reported By: plasmapermanent at msn dot com
Status: Feedback
Bug Type: Session related
Operating System: Windows XP SP3
PHP Version: 5.2.9
New Comment:
I can't give shot code because I try to use session and it work.
But when I use code that I give in link. It's error.
I'm only add session_start() just 1 line.
Previous Comments:
------------------------------------------------------------------------
[2009-05-28 12:40:28] pajoye@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2009-05-28 12:31:33] plasmapermanent at msn dot com
Description:
------------
Just insert session_start() into code and got error.
I try to insert top of code. It still error.
Reproduce code:
---------------
Source Code
================
http://www.thaicybergames.com/webboard/index.php?topic=108158.0
================
MySQL
================
CREATE TABLE IF NOT EXISTS
p28officer (
id double unsigned NOT NULL,
user char(20) COLLATE utf8_bin NOT NULL,
pass char(20) COLLATE utf8_bin NOT NULL,
ldate date DEFAULT NULL,
ltime time DEFAULT NULL,
ip varchar(15) COLLATE utf8_bin DEFAULT NULL,
lv tinyint(4) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
INSERT INTO p28officer (id, user, pass,
ldate, ltime, ip,
lv) VALUES
(999999999999, 'xxx', 'xxx', '2009-05-28', '20:02:00',
'127.0.0.1',
9);
Expected result:
----------------
I just send variable name and pass into this page.
It would be can use session and remember "ssid" variable as session to
use in other pages.
Actual result:
--------------
This error (HTTP 500 Internal Server Error) means that the website you
are visiting had a server problem which prevented the webpage from
displaying.
If I remove that line. It work fine. But can't use session.
Juse enable that line this error was come.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48412&edit=1