RE: [PHP] Session Problem
| From: | Lawrence dot Sheed at dfait-maeci dot gc dot ca | Date: | Fri, 24 Aug 2001 06:01:00 +0000 |
| Subject: | RE: [PHP] Session Problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-64210@lists.php.net to get a copy of this message | ||
The simple things...
Now I feel stupid.
Baaie dankie Rudolf.
(I'm an ex Capetownian now in Shanghai,China)
Note to self, read manual * C A R E F U L L Y *
-----Original Message-----
From: Rudolf Visagie [mailto:Rudolf@qedi.co.za]
Sent: August 24, 2001 1:43 PM
To: Lawrence.Sheed@dfait-maeci.gc.ca
Cc: php-general@lists.php.net
Subject: RE: [PHP] Session Problem
Try
session_register("count");
Rudolf Visagie
rudolf@qedi.co.za
-----Original Message-----
From: Lawrence.Sheed@dfait-maeci.gc.ca
[mailto:Lawrence.Sheed@dfait-maeci.gc.ca]
Sent: 24 August 2001 04:42
To: php-general@lists.php.net
Subject: [PHP] Session Problem
I can't get session variables to work
I know this has been done to death in the past, but I've looked on php.net,
and google for a solution, have tried the suggestions, and seem to fix it.
My php session settings are as follows:
Name Local Global settings
session.auto_start Off Off
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
The code I'm using to test is as follows:
<?php
session_start();
echo "COUNT{$count}";
if (!isset($count)) {
echo "registering session";
session_register($count);
$count=1;
}
else {
$count++;
echo $count;
}
?>
The output is as follows:
COUNTregistering session
Refreshing shows the same output
My /tmp directory exists and has the following permissions.
drwxrwxrwt 3 root root 4096 Aug 24 10:40 tmp
What should I be looking for?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net