Hi Rosen,
Put your
session_start();
session_unregister("var1", "var2");
functions at the beginning of your login page, but then destroy the session if login
is false and on logout.
session_unregister($var1);
session_unregister($var2);
session_destroy();
Finally, on subsequent pages that the user can access after login, put the
session_start(); function at the top.
hth,
Julie
Quoting Rosen ([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
>
>
>
>
>