Re: Starting session

From: Date: Wed, 20 Jun 2001 01:19:50 +0000
Subject: Re: Starting session
Groups: php.general 
Request: Send a blank email to php-general+get-54432@lists.php.net to get a copy of this message
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" <rosen_dm@dir.bg> wrote in message news:9gnhvd$8qh$1@w153.z064000151.sjc-ca.dsl.cnc.net... > 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 (#54432) next »