Jump to content

php sessions


robvan75

Recommended Posts

Hi,

I am new to php and I created two simple php scripts, session_test1.php and session_test2.php.When I view session_test2.php in my browser I get a blank page, I was expecting to see the word John.I am using godaddy as a provider.

 

session_test1.php

 

<?php session_start();

$_SESSION['name']=John;

?>

 

 

session_test2.php

 

<?php session_start();

echo $_SESSION['name'];

?>

Link to comment
https://forums.phpfreaks.com/topic/127772-php-sessions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.