Hello,
I think a lot has been said on this, sadly in German and frankly my German is as good as my Latin, so sorry if this is repetitive but I'm going crazy and don't know what else to do.
I'm trying a very simple script, just want to send some variables from one web page to another, an therefore wanted to use $_Session
first page:
<?php
session_start();
$_session[userlevel]=1;
echo "user: ".$_session[userlevel]."<p>";
print_r($_session);
?>
Works fine, result is:
user: 1
Array ( [userlevel] => 1 )
Second page:
<?php
session_start();
echo "user: ".$_session[userlevel]."<p>";
print_r($_session);
?>
$_Session is not being passed, result is only:
user:
Just for the fun of it, I uploaded this two pages up to a Unix server that I use and in the main server everything works fine, so I know that the scripts are doing their job, my problem is that I do all developing in my PC before I upload and I would much rather have it working on both machines, so maintaining it is simpler.
I've checked my PHP.ini file, on my PC, register_globals is on, session.save_path is to a real directory the only thing that I've seen is that the file that is created in the session.save_path is empty, no info is being stored.
Last year I was doing some $_Session variable stuff with XAMPP installed on a 32bit computer with no problem whatsoever, know I'm working on a 64bit machine with windows 7, could this be the problem? PLEASE, HELP, although I think I could work around this and use something else in order to store my data, $_Session is a much simpler way.
Thank you in advance for any advice or tip on how to fix my dilemma.