use of session...
Posted: Wed Feb 13, 2008 8:03 pm
I did a quick search and did not find this topic. Sorry if this is old, it's new for me...
First, I am very new to PHP and Linux. In fact....
I got my first Linux box today. I installed Debain, Apache-SSL (1.3.34.BEN-SSL/1.55), and PHP 5. MySQL will come later. All configurations are the default settings. No changes have been made to Apache or PHP5.
I have been working on a large project, so far about 30 php files. All of these are working on a Windows XP, Apache2, PHP5 and MySQL system. The problem is the the same code does not work on the Debian system. It all has to do with Sessions. The following code shows my problem:
<?php
session_start();
$_SESSION["myname"] = "Larry";
echo "[".$_SESSION["myname"]."]";
session_write_close();
?>
On the Windows system this returns: [Larry]
On the Debian system this returns: []
Can someone please tell me what I'm doing wrong?
Could it be the Apache-SSL?
Or even the rights in the var/www directory?
Thanks for the help,
Larry
First, I am very new to PHP and Linux. In fact....
I got my first Linux box today. I installed Debain, Apache-SSL (1.3.34.BEN-SSL/1.55), and PHP 5. MySQL will come later. All configurations are the default settings. No changes have been made to Apache or PHP5.
I have been working on a large project, so far about 30 php files. All of these are working on a Windows XP, Apache2, PHP5 and MySQL system. The problem is the the same code does not work on the Debian system. It all has to do with Sessions. The following code shows my problem:
<?php
session_start();
$_SESSION["myname"] = "Larry";
echo "[".$_SESSION["myname"]."]";
session_write_close();
?>
On the Windows system this returns: [Larry]
On the Debian system this returns: []
Can someone please tell me what I'm doing wrong?
Could it be the Apache-SSL?
Or even the rights in the var/www directory?
Thanks for the help,
Larry