Re: [PHP4BETA] How to enable Session tracking module
| From: | Sascha Schumann | Date: | Sun, 18 Jul 1999 01:10:33 +0000 |
| Subject: | Re: [PHP4BETA] How to enable Session tracking module | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2209@lists.php.net to get a copy of this message | ||
On Sat, Jul 17, 1999 at 08:39:29PM -0400, Juan A. Pons wrote:
> Hello,
>
> I am testing out B1 and did a ./configure --help to figure out the
> options I available and noticed that there is no mention of the session
> extension. Since the dir for session is there I am assuming it works and
> it's available. Am I right in assuming you enable it like this:
> --enable-session?
It's currently always on.
> Also, how is it configured? There is no setting for it in the php.ini
I've just committed some changes which address your request.
The defaults should be fine for almost everyone.
Here is a short example which demonstrates how the session
support works. Note that you need session_register() only once,
even if you don't set the registered variable to a value, the
session module will remember it the next time.
session_register automatically starts a new session, if
necessary.
-------session.php-------------------------------------------
<?
session_register("count");
if($count++ > 0)
echo "Welcome back! You have visited this site $count times!");
?>
<P>
<A HREF="session.php?<?=sid?>">Click here</a> to count up.
-------------------------------------------------------------
--
Regards,
Sascha Schumann
Consultant