Webbserverprogrammering 1

Show sourcecode

The following files exists in this folder. Click to view.

webbsrvprg/exercises/

cookie.php
extra.php
formulär.php
index (2).php
index.php
inklud1.php
inklude/
inklude2.php
inlogg.php
medeltal.php
ovn_1.php
ovn_2.php
ovn_4.php
resultat.php
resultat2.php
resultat3.php
session.php
sid1.php
sid2.php
sid3.php
sidslut.php
sidstart.php
textfeedback.php
textstreng.php
valkommen.php

session.php

14 lines UTF-8 Windows (CRLF)
<?php
session_start
();

if (isset(
$_SESSION["besok"]) &&
    
time() - $_SESSION["besok"] < 60) {

    echo 
"Välkommen tillbaka";

} else {
    echo 
"Hej för första gången";

    
$_SESSION["besok"] = time();
}
?>