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

session problem

P: n/a
I have a problem with session in my version of PHP
I use WinXP (FAT32), Apache, latest PHP.
In Linux, Apache, latest PHP instead it works fine!
So, my program is:
----------------In Windows returns always NULL!---------------
<?php
session_start();
var_dump($_SESSION['key']);
$_SESSION['key'] = 'value';
?>
<a href=index.php>reload</a>
------In Linux returns first time NULL and after returns 'value'-----
my PHP.INI contains:
-----------------------
[Session]
session.save_handler = files
session.save_path = /windows/temp
session.use_cookies = 1
; session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /windows/temp
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_dividend = 100
session.gc_maxlifetime = 1440
session.bug_compat_42 = 1
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=,fields et="
--------------------

Where is the problem????

Thanks
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
<- Chameleon -> wrote:
[...]
----------------In Windows returns always NULL!---------------
<?php
session_start();
var_dump($_SESSION['key']);
$_SESSION['key'] = 'value';
?>
<a href=index.php>reload</a>
------In Linux returns first time NULL and after returns 'value'-----
my PHP.INI contains: [...]session.cookie_path = /windows/temp [...]Where is the problem????

in session_cookie_path.

Try
session.cookie_path = /
--
I have a spam filter working.
To mail me include "urkxvq" (with or without the quotes)
in the subject line, or your mail will be ruthlessly discarded.
Jul 17 '05 #2

P: n/a
> Try
session.cookie_path = /


Thank you friend!
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.