hi all, I am new in php. I am facing a problem with session. I create a session in a script named "index.php". This script call another php file "session.php". when i work in "session.php" it doesn't recognize the session in "index.php". what should i do to make the session available in "seesion.php" that is created in "index.php". thanx
session_start() is placed before every script. But when a new script is called the previous session is replaced by the new one. I want to use the older session. what to do?
i think(i'm not sure ) you should place session_start() directly on page and other session codes and you can't include or require that .
Not sure then, could be the way PHP is configured? Write a page with this code: <?php phpinfo();?> Can you provide a link to results so I can compare with mine?