By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,405 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,405 IT Pros & Developers. It's quick & easy.

Where is my mind ?

P: n/a
Hi,

Strange things happening on my server (a little XP machine...) !
Session files (sess_xxxxx...) are created well but they remain empty...
always ! My session variables never get stored !

I'm stuck.
Any tip appreciated...

Matt

--
@+
Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a

Matthias Ainsworth wrote:
Hi,

Strange things happening on my server (a little XP machine...) !
Session files (sess_xxxxx...) are created well but they remain empty... always ! My session variables never get stored !


Sample code please? Can't debug problems with seeing code.

Ken

Jul 17 '05 #2

P: n/a
Hi Ken,

A sample code will not help much...
But here it is :

session_start();

if (!isset($_SESSION["count"]))
$_SESSION["count"] = 1;
else
$_SESSION["count"] ++;

echo $_SESSION["count"];

I know this one works.
Every time I call this script a new session file is created (I don't know
why previous is not reused)... and it remains pretty empty.

Everytime I refresh this page, Apache log file (access.log) reports :

127.0.0.1 - - [29/Apr/2005:17:35:36 +0200] "GET /test.php HTTP/1.1" 200
41765
127.0.0.1 - - [29/Apr/2005:17:35:37 +0200] "GET
/test.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 4459
127.0.0.1 - - [29/Apr/2005:17:35:37 +0200] "GET
/test.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2974

Any idea what this is (PHPE...) ? It is not my session ID... so ?

--
@+
"Ken Robinson" <ke******@rbnsn.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...

Matthias Ainsworth wrote:
Hi,

Strange things happening on my server (a little XP machine...) !
Session files (sess_xxxxx...) are created well but they remain

empty...
always ! My session variables never get stored !


Sample code please? Can't debug problems with seeing code.

Ken

Jul 17 '05 #3

P: n/a
*** Matthias Ainsworth wrote/escribió (Fri, 29 Apr 2005 16:01:05 +0200):
Strange things happening on my server (a little XP machine...) !
Session files (sess_xxxxx...) are created well but they remain empty...
always ! My session variables never get stored !


Is it an NTFS partition? Does the user Apache runs as have permission to
write on these files?
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
Jul 17 '05 #4

P: n/a
On Fri, 29 Apr 2005 17:46:15 +0200, Matthias Ainsworth wrote:
Hi Ken,

A sample code will not help much...
But here it is :

session_start();

if (!isset($_SESSION["count"]))
$_SESSION["count"] = 1;
else
$_SESSION["count"] ++;

echo $_SESSION["count"];

I know this one works.
Every time I call this script a new session file is created (I don't know
why previous is not reused)... and it remains pretty empty.

Everytime I refresh this page, Apache log file (access.log) reports :

127.0.0.1 - - [29/Apr/2005:17:35:36 +0200] "GET /test.php HTTP/1.1" 200
41765
127.0.0.1 - - [29/Apr/2005:17:35:37 +0200] "GET
/test.php?=PHPE9568F35-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 4459
127.0.0.1 - - [29/Apr/2005:17:35:37 +0200] "GET
/test.php?=PHPE9568F34-D428-11d2-A769-00AA001ACF42 HTTP/1.1" 200 2974

Any idea what this is (PHPE...) ? It is not my session ID... so ?


It looks like your browser wants to send back the session information
(session ID) attached to the URL instead of as a cookie. Yet you say this
is not your session key. Perhaps a misconfiguration somewhere? Try to
force PHP to use cookies (this is done in the php.ini file, use cookies
only or something like that) and make sure your browser is allowed to use
cookies, and then see what happens.
Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.