in reply to Re: perl as a php alternative
in thread perl as a php alternative
and in file2.php<?php session_start(); $_SESSION['hello']=23; ?>
does exactly what one expects, as long as the browser remains the same. php nicely takes care of sending a random cookie at the right time of the http protocol, and stores the 'hello' variable in the thereby-named disk file on the server. I know I can write this myself, but this reinvents a painful wheel. transparent variable persistence across different webpages is quite nice.<?php session_start(); echo $_SESSION['hello']; ?>
there? not there?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: perl as a php alternative
by Your Mother (Archbishop) on Dec 06, 2015 at 22:16 UTC | |
Re^3: perl as a php alternative
by choroba (Cardinal) on Dec 06, 2015 at 20:12 UTC |