Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002758 [Quercus] minor always 06-28-08 03:57 07-01-08 13:55
Reporter stephaneeybert View Status public  
Assigned To nam
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0002758: Starting the session
Description I'm running into an issue when using the php function session_start as in


This happens only when running the php application in Resin/Quercus.

It does not happen when running it directly in PHP.

I traced the program execution and my conclusion is that calling this php function will give the error message, even when calling it for the first time in the program execution.

I found out why my session_start function would give the error message.

This is because just before calling this function I would call the function session_regenerate_id(true);
as in:

// For security reasons renew the session id


Somehow, and contrary to PHP4, Resin seems to start a session when calling the function session_regenerate_id(true)

So I removed the call to session_regenerate_id(true); and it now works fine.
Additional Information I also tried to call session_regenerate_id(false); to see if it would give some interesting result.

And indeed it gave me an exception.
500 Servlet Exception
[show] java.lang.NullPointerException

Same thing when calling it like session_regenerate_id();
Attached Files  session.php [^] (3,528 bytes) 06-28-08 03:57

- Relationships

- Notes
07-01-08 13:55


- Issue History
Date Modified Username Field Change
06-28-08 03:57 stephaneeybert New Issue
06-28-08 03:57 stephaneeybert File Added: session.php
07-01-08 13:21 nam Status new => assigned
07-01-08 13:21 nam Assigned To  => nam
07-01-08 13:55 nam Status assigned => closed
07-01-08 13:55 nam Note Added: 0003233
07-01-08 13:55 nam Resolution open => fixed
07-01-08 13:55 nam Fixed in Version  => 3.2.0

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker