iam try to create and pass the session variable
using PHP, but i could not able to pass the session variable from one page to another page through server.
my problem is that i create a session variable by following code and save it in silicon-bay.com/session.php
<?php
session_start();
$my_session_variable = "some value";
session_register("my_session_variable");
?>
than i call the session variable in silicon-bay.com/session1.php by inserting the following code
<?php
session_start();
print "Value of 'my_session_variable':$my_session_variable";
?>
now on both the pages i dont find any error
but ultimately on session1.php the variable value is not displayed
i dont know why, iam going mad please help me,
i discussed this with my hosting company but they tell me when they tested the same pages in there computer they see the value of the variable properly means they are telling that the script works fine in there computers, so if they can see the value why i cannot see the value
i have tried checking it on all windows platfrom and at least more than 10 computer but i cant see it,
and with my hosting computer guys can read see the value. they tried it with an external dialup connect too it display the value.
here it gives me the session ID on next page but the variable which i register is not seen
please help
so please help me out