Jump to content

session immediate timeout


neridaj

Recommended Posts

$username is defined at login:

 

// include function files for this application
require_once('bookmark_fns.php'); 
session_start();

if ($username && $passwd)
// they have just tried logging in
{
  try
  {
    login($username, $passwd);
    // if they are in the database register the user id
    $_SESSION['valid_user'] = $username;
  }
  catch(Exception $e)
  {
  	echo $e->getMessage();
    // unsuccessful login
    do_html_header('Problem:');
    do_html_url('login.php', 'Login');
    do_html_footer();
    exit;
  }      
}

 

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.