Re: Session
| From: | Matt Schroebel | Date: | Sun, 27 Aug 2000 11:56:40 +0000 |
| Subject: | Re: Session | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13833@lists.php.net to get a copy of this message | ||
> Anyone have a complete php4 session program?
<?php session_start();
session_register("count");
?>
<head>
<title>Count</title>
</head>
<body>
You've seen this page
<?php $count++; echo "$count "; ?>
times
</body>
</html>
Note that session_register has the variable name *without* the $.
Also http://hotwired.lycos.com/webmonkey/programming/php/
has a session tutorial. So does http://www.phpwizard.net