<%doc> # # $Id: session-test.html,v 1.1 2001/12/17 13:54:57 adulau Exp $ # # session-test.html is an example of how to use sessions # Author : Tycho Fruru # Copyright (C) 2001 Tycho Fruru # Copyright (C) 2001 Conostix S.A. Luxembourg - Tycho Fruru # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; either version 2 of the License, or (at your # option) any later version. See . # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. # <%args> $session <%perl> $m->out("

    ");
    if ($session->{'authenticated'} == 0) {
    $m->out("not authenticated");
    } else {
    $m->out("authenticated");
    }