Session bug?

This is a discussion on Session bug? within the PHP Language forums, part of the PHP Programming Forums category; Sorry if I missed the answer in this NG. Searching hasn't turned up anything other than permissions issues, which ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-10-2003
James Butler
 
Posts: n/a
Default Session bug?

Sorry if I missed the answer in this NG. Searching hasn't turned up
anything other than permissions issues, which this isn't.

OS: Red Hat 8
PHP: 4.3.3
HTTPD: Apache 2.0.47

In PHP.INI:

session_autostart = 1;
session_use_cookies = 0;

How sessions are maintained:

Visitor hits the page -> if no session_id in the URI, get session_id
and add to all URIs on the page, carrying over to further pages via
query string in URI.

Session Issues:

(1) Even though sessions are being written and stored, I am receiving
many error_log entries:

PHP Warning: Unknown(): The session id contains invalid characters,
valid characters are only a-z, A-Z and 0-9 in Unknown on line 0
PHP Warning: Unknown(): Failed to write session data (files). Please
verify that the current setting of session.save_path is correct (/tmp)
in Unknown on line 0

Now why would PHP write itself a session_id that it couldn't use? I'm
certainly not writing it. Maybe incomplete or mangled URIs are being
written, however I can't tell which ones, because everything is
working fine on the sites, URI-wise...every dynamic link goes where I
want it to and carries over the session_id correctly in the query
string, as described above. In addition (see below), sessions ARE
being written to /tmp (chmod 777). I have since changed it to a more
local directory, but I don't know that I needed to.

(2) It looks like there are several sessions being started
near-simultaneously for each request, however the one that gets
written to the URIs as described above are carrying over and being
used properly.

Why isn't PHP recognizing that the session has already auto_started?
What's happening when PHP launches multiple sessions for a single
request?

I appreciate any insight. Thanks!

James
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:55 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0