Re: Starting session

From: Date: Tue, 19 Jun 2001 19:00:55 +0000
Subject: Re: Starting session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-54410@lists.php.net to get a copy of this message
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 (rosen_dm@dir.bg): > 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 > > > > >

« previous php.general (#54410) next »