Jump to content

Sessions in PHP


AdamBrave

Recommended Posts

The error appears when I do the following "echo" in another file different from the "welcome file" where I defined the session start:

 

<?php
//retrieve session data
echo "IDuser=". $_SESSION['userID'];
echo "<br />";
echo "<br />";
?>

 

And yes, the "session_start()" is the very first line.

Link to comment
https://forums.phpfreaks.com/topic/274632-sessions-in-php/#findComment-1413174
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.