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($_SESS ION['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_ha ndler = files
session.save_pa th = /windows/temp
session.use_coo kies = 1
; session.use_onl y_cookies = 1
session.name = PHPSESSID
session.auto_st art = 0
session.cookie_ lifetime = 0
session.cookie_ path = /windows/temp
session.cookie_ domain =
session.seriali ze_handler = php
session.gc_prob ability = 1
session.gc_divi dend = 100
session.gc_maxl ifetime = 1440
session.bug_com pat_42 = 1
session.bug_com pat_warn = 1
session.referer _check =
session.entropy _length = 0
session.entropy _file =
;session.entrop y_length = 16
;session.entrop y_file = /dev/urandom
session.cache_l imiter = nocache
session.cache_e xpire = 180
session.use_tra ns_sid = 0
url_rewriter.ta gs = "a=href,area=hr ef,frame=src,in put=src,form=,f ieldset="
--------------------
Where is the problem????
Thanks
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($_SESS ION['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_ha ndler = files
session.save_pa th = /windows/temp
session.use_coo kies = 1
; session.use_onl y_cookies = 1
session.name = PHPSESSID
session.auto_st art = 0
session.cookie_ lifetime = 0
session.cookie_ path = /windows/temp
session.cookie_ domain =
session.seriali ze_handler = php
session.gc_prob ability = 1
session.gc_divi dend = 100
session.gc_maxl ifetime = 1440
session.bug_com pat_42 = 1
session.bug_com pat_warn = 1
session.referer _check =
session.entropy _length = 0
session.entropy _file =
;session.entrop y_length = 16
;session.entrop y_file = /dev/urandom
session.cache_l imiter = nocache
session.cache_e xpire = 180
session.use_tra ns_sid = 0
url_rewriter.ta gs = "a=href,area=hr ef,frame=src,in put=src,form=,f ieldset="
--------------------
Where is the problem????
Thanks
Comment