Re: Global variable example please
| From: | Julio Nobrega | Date: | Tue, 18 Jun 2002 03:32:11 +0000 |
| Subject: | Re: Global variable example please | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102646@lists.php.net to get a copy of this message | ||
page1.php
<?php
session_start();
$_SESSION['var'] = 'value';
?>
page2.php
<?php
session_start();
echo $_SESSION['var'];
?>
Sessions are really simple to use. But search for tutorials, or read the
manual's pages to get the idea about how it works.
--
Julio Nobrega
Cheguei! Pode acessar:
http://www.inerciasensorial.com.br
"Nightshade" <nightshade@tiscali.it> escreveu na mensagem
news:20020617193734.92628.qmail@pb1.pair.com...
> I just need a session variable that could be read by all page.
> Can you give an example howto reading/writing?