Connecting Tech Pros Worldwide Forums | Help | Site Map

session problem

Guest
 
Posts: n/a
#1: Jul 17 '05
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



Pedro
Guest
 
Posts: n/a
#2: Jul 17 '05

re: session problem


<- Chameleon -> wrote:
[...][color=blue]
>----------------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:[/color]
[...][color=blue]
>session.cookie_path = /windows/temp[/color]
[...][color=blue]
>Where is the problem????[/color]


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.
Guest
 
Posts: n/a
#3: Jul 17 '05

re: session problem


> Try[color=blue]
> session.cookie_path = /[/color]

Thank you friend!


Closed Thread


Similar PHP bytes