I'm not sure why you are trying to use session_is_registered() to
validate a user, but you should get rid of that.
With sessions, you want to start the session on every page you need
session management. If you have a session module that you include
everywhere, you can do this by registering ea
Are you calling session_start() on the other pages inside the secure area?
- Original Message -
From: "Stephen Craton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 29, 2002 5:23 PM
Subject: [PHP] Session Not Saving?
> I'm having another problem with my member's a
> function check_valid()
> {
> global $valid_user;
> if (session_is_registered("valid_user"))
> {
> echo "Welcome $valid_user!";
> }
> else
> {
> echo "You are not logged in.";
> exit;
> }
> }
try it like this:
function check_valid()
{
global $valid_user;
if (is
3 matches
Mail list logo