Connecting Tech Pros Worldwide Help | Site Map

session problem

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 12:32 AM
Guest
 
Posts: n/a
Default session problem

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



  #2  
Old July 17th, 2005, 12:32 AM
Pedro
Guest
 
Posts: n/a
Default 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.
  #3  
Old July 17th, 2005, 12:32 AM
Guest
 
Posts: n/a
Default Re: session problem

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

Thank you friend!


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.