This question already has an answer here:
I am trying to make my session in dreamweaver last longer, but I'm not sure how?
There is some code like:
if (!isset($_SESSION)) {
session_start();
}
Should I change the value or add anything?
The problem that I'm having is that when the user logs in and if he visits another page, he will get logged out.
Im new to php and that, thanks for any answers.
</div>
I had a similar issue with $_SESSION when i first used it the other day. You will need to call session_start() EVERY time you wish to call something from it. Just add this above your call to $_SESSION.
<?php
session_start();
?>