#16263 [Com]: session.start() create new empty session file and not resume existing session

From: Date: Thu, 18 Jan 2007 19:20:46 +0000
Subject: #16263 [Com]: session.start() create new empty session file and not resume existing session
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-107738@lists.php.net to get a copy of this message
 ID:               16263
 Comment by:       par at tor dot se
 Reported By:      kur at natur dot cuni dot cz
 Status:           No Feedback
 Bug Type:         Session related
 Operating System: ANY
 PHP Version:      4.3.0-dev
 New Comment:

Try to change this:

session.save_path = "0;c:\program files\php\tmp"

don't forget to use the 0; before the path.


Previous Comments:
------------------------------------------------------------------------

[2006-12-24 13:18:44] barts at time dot net dot my

PHP 5.1.4
Windows NT SERVER 5.1 build 2600

Possible workarounds installed as mentioned in the thread.

I also noticed that the session cookie is not updated 
when another pages is loaded that contains session_start();
This causes the session always to expire after its lifetime,
where I expect the session to expire after the last session_start +
lifetime.

------------------------------------------------------------------------

[2006-12-02 05:00:24] michaellai2006 at yahoo dot com

Same thing for 5.1.16
I tried other people's suggestion, did not work for me neither. 

Please give a workaround.

------------------------------------------------------------------------

[2006-12-02 04:51:44] failmore at yahoo dot com

Similar problem happend to me. The following is my configuration:
Apache 2.2.3, 
PHP 5.1.16
I tried three different browsers, IE, FireFox, Maxthon
same error happens.
I host the website on my local machine, Win XP Home, therefore, I try
to access the site using http://localhost/testsite

add default_charset = "iso-8859-1"; in php.ini, did not work
set setting cookie_domain=localhost did not work
set session.use_trans_sid on did not work.

------------------------------------------------------------------------

[2006-11-22 11:13:38] jclewley at netprospex dot com

Try setting cookie_domain in php.ini to a period (.) followed by your
domain.  For example, ".google.com".  The default typically tells PHP
to use www.google.com which will cause problems if the user types
google.com.

------------------------------------------------------------------------

[2006-11-16 18:24:33] tobias dot hug at alpinenet dot ch

I've got the same problem with php 5.1.6.
session data is not maintained between pages.

If I add default_charset = "iso-8859-1"; in php.ini, everything works.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/16263

-- 
Edit this bug report at http://bugs.php.net/?id=16263&edit=1


Thread (94 messages)

« previous php.bugs (#107738) next »