In programming the danger of exploring the small details of coding is that you get obsessed with every line of code you write, thereby greatly reducing productivity. In general, is not worth obsessing over code. On the other hand you should code with deliberation and intent.
Steven Feurstein Oracle Magazine July /August 2004
A User Agent, like a web browser, uses HTTP to request a HTML document
Salvare il seguente codice nella pagina page1.php
<?php
session_start();
$_SESSION["nome"] = "nico";
// raccomandato per le verisioni >4.1
?>
<a href="page2.php">Vai alla pagina seguente</a>
Attenzione dovunque si utilizzano le sessioni il codice deve richiamare all'inizio la funzione session_start(); altrimenti
viene restituito un errore come:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at c:webpage1.php:3) in c:webpage1.php on line 4
Copiare nella stessa cartella il file page2.php contenuto in
page2.zip