You'll need to use sessions.

Then, on each page (you can do this in an include I think)... you will have
session_start beginning each page.  From there you can do a check to see if
the user has already logged in... if they are logged in, it will spit out
the page... if not, it will ask them to log in.  When they do log in, you
then register those session variables needed to flag that the user is logged
in.

You could also do this with cookies... but then you'd probably end up
storing user data on the user's machine which could be a bigger security
hassle.

Not too hard... just need to plan in advance.

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit


> -----Original Message-----
> From: Radovan Radic [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 01, 2002 9:49 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Login on IIS
> 
> 
> Hello!
> 
> I need to use login form when user opens my page so this is 
> for session.
> Then i need to get userno from usertable for input user and 
> pass, because
> userno is almost in all tables. Then i need to put userno in 
> cookie (or i
> guess).
> I think i need to do something like this in every php script:
> include('login.php') or require('login.php')
> But i only want to show login form, read data from it and 
> somehow continue
> loading script normally, i dont want that login form stays 
> above all my
> page. How to do this?
> 
> Thanks, Radovan
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to