Re: is this syntax correct?

From: Date: Tue, 03 Apr 2001 01:51:28 +0000
Subject: Re: is this syntax correct?
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-46741@lists.php.net to get a copy of this message
I think many users are confusing about PHP4 session. I thought this info might be useful for someone. There are 3 ways to start PHP4 session. (as far as I know) 1) Using php.ini: "session.auto_start = 1" to automatically start session for any request. 2) Using session_start(): Explicitly start PHP4 session with "session_start()" 3) Using session functions: Implicitly start PHP4 session with "session_register()" If you are having trouble with PHP4 session, set "error_reporting = E_ALL" in php.ini. Is there any other way to start PHP4 session? Regards, -- Yasuo Ohgaki "Jack Dempsey" <dempsejn@georgetown.edu> wrote in message news:3AC875FA.11D02BD5@georgetown.edu... > Jacky, > > basic thing about sessions: you need session_start() at the top of every > page in which you expect to use them...check out zend.com for some > tutorials...but yes, you do need it at the top of that page... > > -jack > "Jacky@lilst" wrote: > > > > Not really, do I need to have session_start at the sender page and the > > receiver page? > > Jack > > jacky@activelifestyle.com > > "There is nothing more rewarding than reaching the goal you set for > > yourself" > > ----- Original Message ----- > > From: Wade Halsey <whalsey@btech.co.za> > > To: Jacky@lilst <jacky@activelifestyle.com> > > Sent: Monday, April 02, 2001 3:48 AM > > Subject: Re: [PHP] is this syntax correct? > > > > > do you have > > > session_start(); > > > at the top of the next page? > > > > > > ----- Original Message ----- > > > From: Jacky@lilst <jacky@activelifestyle.com> > > > To: <php-general@lists.php.net> > > > Sent: Monday, April 02, 2001 10:43 PM > > > Subject: Re: [PHP] is this syntax correct? > > > > > > > > > > I also tried this syntax: > > > > <?php > > > > global $test; > > > > $test = "foo"; > > > > session_register("test"); > > > > ?> > > > > > > > > and it still not work as when I go to next page, and try echo $test, > > > nothing > > > > come up. > > > > Jack > > > > jacky@activelifestyle.com > > > > "There is nothing more rewarding than reaching the goal you set for > > > > yourself" > > > > ----- Original Message ----- > > > > From: Joseph Bannon <joseph@iwebsitesoftware.com> > > > > To: Jacky@lilst <jacky@activelifestyle.com> > > > > Sent: Monday, April 02, 2001 3:44 AM > > > > Subject: RE: [PHP] is this syntax correct? > > > > > > > > > > > > > > So what is the right way to do? > > > > > > > > > > > > > > > I resent my email to the list. I've done mostly DB work, so I need to > > > know > > > > > what those functions do. > > > > > > > > > > J > > > > > > > > > > > > > > > > > > > > > > -- > > > > PHP General Mailing List (http://www.php.net/) > > > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > > > For additional commands, e-mail: php-general-help@lists.php.net > > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#46741) next »