Ok I set up a session... but now how do I make it work on my other pages?
I tried doing
@session_start();
if(isset($_SESSION[\'$userName\'])) {
ec
Check that the session cookie is being sent to the browser on the first hit and getting returned by the browser in subsequent requests. There are lots of reasons why this may be failing - typically PHP has flushed the headers before the call to session_start() (which may be due to UTF-8 BOM chars or just messy programming).
Make sure you've got error reporting enabled.
C.