Jump to content

Recommended Posts

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.