Just make it so that a successful login process involves setting a session
variable.
In all pages that require a login, check that the session variable exists.
In any other pages, just ignore it.
Simple as that!  Now just read the php documentation on how to do it ... (ie
using the session_* commands).

AndrewH

"Rosen" <[EMAIL PROTECTED]> wrote in message
9gnhvd$8qh$[EMAIL PROTECTED]">news:9gnhvd$8qh$[EMAIL PROTECTED]...
> Hi,
> I'm creating a WEB portal  with PHP.
> I want to give possibility the users to register on my site and to use
some
> features on it.
> I want to use sessions and to start session only if user login.
> How can I understand ot my other pages on site, thath the user has logged
in
> my site.
> i.e. to startsession only if user has logged in ?
>
> Thanks,
> Rosen Marinov
>
>
>
>
>


Reply via email to