hi,
i'm new here and i have read all other posts and answers about sessions that i found here .
i define a session in one page and check if it is defined on the second page.
on the first page the variable is always defined (i checked it in my temp directory) but the second page defines a new session in most systems.
i use apache 1.3.26 , php 4.2.3 , mysql 3.23.52 on all systems.
and my php.ini file is the default loaded one on mandrake 9.0
and i have tested my pages on various systems:
there is no problem locally but it can't read the session over the intranet on windows 98se & mandrake dolphin.
i can't even make it work locally on redhat 7.2 and windows2000 server.
all pages start with <? php session_start(); ......
i use "$_session" to define and "isset " to check.
i am not using session_register on any of my pages.
First page:
<?php
session_start();
if (!isset($SESSION['dizi']))
{ $SESSION['dizi']="something here"; }
header("Location: second_page.php");
exit;
?>
and the second page is :
<?php
session_start();
if (!isset($_SESSION['dizi']))
{
echo "There is a problem with the session....";
exit;
}
echo $_SESSION['dizi'];
?>
i always get "There is a problem....." string when i connect to the server from another client. it only works when i am testing on the machine where i am serving the pages.
i will be very happy if someone could say why this problem could occur.
is it possible that the problem will be solved when i change
session.cookie_path or session.cookie_domain in php.ini.
Please Help