Thanks to everybody's suggestions. But the problem won't go away just by ignoring the "Notice". I'm using $_SESSION["user_id"]) as a validation tool to verify that the user has logged in. I have looked at all the vars in phpinfo() (I don't have access to the server ini files). And I can't see anything wrong.
For example, today, I had the same page open for more than an hour, and my session code worked well. But other times, I'll work for 30 seconds and it will time out. I've asked my server host - and they say they havn't made any changes. I've asked my internet provider - and they're clueless. I've played with the settings on my MS-IE (ver 5.5) - still no luck. Yes, I use "session_start() " at the beginning of all my PHP files. Currently, I'm still in development - but the site will go up live by Monday or Tuesday and it would be very embarrasing if the users were told to login every 30 seconds. Pance. "Pance" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've been using the same code to verify a persons login for more than a > year - but I've been having some problems lately - I get past the login, but > the session times-out after about 30 seconds or a minute. My new server is > using PHP ver 4.3.3. I've also read the docs on "sessions" and I've taken > their suggestion and have stopped using session_register("user_id"). I now > use $_SESSION["user_id"]). > > But, like I said after about a short minute, I get the following error > message: > > Notice: Undefined index: user_id in /home/pance/public_html/menu.php on line > 13 > > Has anybody else come accross this problem - and how did you solve it? > > Pance Stojkovski -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php