Anonymous | Login | Signup for a new account | 12-17-2024 08:31 PST |
Main | My View | View Issues | Change Log | Docs |
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 session_start(); 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 session_regenerate_id(true); session_start(); 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 | ||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
30 total queries executed. 26 unique queries executed. |