[PHP] Checking for a successful login and setting a global flag.

2002-07-08 Thread Youngie
Hi Follks I'm writing an application that requires the user to login to gain access to the rest of the site. The login dailog is on index.html, once verified by login.php the user is presented with a menu from which he can select several options option1.htm which executes a query through

Fw: [PHP] Checking for a successful login and setting a global flag.

2002-07-08 Thread Kevin Stone
Simply put you can not protect HTML pages through your login system. You must have some kind of continuous login/check at the top of each page. Give the page the .php extension so it can parse and execute the check. If you're using Cookies that's perfect.. you can just check for the existance

Re: [PHP] Checking for a successful login and setting a global flag.

2002-07-08 Thread Kevin Stone
Okay sorry for the misunderstanding. You can set the lifetime of the cookie to die when the browser window is closed. Or if you use sessions this will happen automatically. http://www.php.net/manual/en/function.setcookie.php -Kevin - Original Message - From: Youngie [EMAIL PROTECTED]

Re: [PHP] Checking for a successful login and setting a global flag.

2002-07-08 Thread Pete James
You could also try using Javascript to popup a window when they close the current one, and reset your cookies (and/or destroy your session) in that window. Pete. Kevin Stone wrote: Okay sorry for the misunderstanding. You can set the lifetime of the cookie to die when the browser window