Jump to content

matthewcb

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

matthewcb's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have a PHP login script that takes a u/n and p/w and checks it against a MySQL database. The first time I log in it validates, sets the session and sends me on to the index.php where I have validated that the session variable ($_SESSION["username"]) is indeed set. When I load another page it checks for the session variable and magically it's gone and I'm redirected to login. When I re-login using the exact same process, u/n and p/w it validates sends me to the index.php page and then no matter where I go, I stay logged in. Same pages different results. I am making sure that session_start is called before checking for the variables. I also just moved to an Apache web server with Ubuntu 10.4 and PHP5. I'm thinking it's a php.ini issue but I'm hoping someone knows for sure. Thanks. -matt
×
×
  • 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.