ea-Geiertest
[ class tree: ea-Geier ] [ index: ea-Geier ] [ all elements ]

Source for file sessionStart.php

Documentation is available at sessionStart.php

  1. <?php
  2. /**
  3.  * Help file for session tests
  4.  *
  5.  * LICENSE:
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2 of the License, or
  9.  * (at your option) any later version.
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.     See the
  13.  * GNU General Public License for more details.
  14.  * You should have received a copy of the GNU General Public License along
  15.  * with this program; if not, write to the Free Software Foundation, Inc.,
  16.  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  17.  *
  18.  * @package       ea-Geier
  19.  * @subpackage test
  20.  * @author       m2mtech <tech@m2m.at>
  21.  * @copyright  2007 m2m server software gmbh
  22.  * @license       http://www.gnu.org/licenses/gpl.html GNU General Public License Version 2
  23.  * @version       $Id: sessionStart.php 62 2007-04-27 09:26:50Z m2mtech $
  24.  * @link       http://www.ea-geier.at/
  25.  */
  26.  
  27. /**
  28.  * prepare environment
  29.  */
  30. chdir('../../../../')// set root directory
  31.  
  32. require_once('code/config.php');
  33. require_once('code/base/db.class.php');
  34.  
  35. //if (defined('eaDEBUG') && strpos(eaDEBUG, 'dbTestDebug')) $debug = true;
  36. //else $debug = false;
  37. $debug false;
  38.  
  39. /**
  40.  * start session
  41.  */
  42. $conf['sessionName''testSession'
  43. $db new eaDB($conf$debug);
  44. $_SESSION['var1''value1';
  45.  
  46. ?>
  47. <html>
  48.   <head>
  49.     <title>session start</title>
  50.   </head>
  51.   <body>
  52.     <a href="sessionCheck.php" id="sessionCheck">session check</a><br />
  53.     <a href="sessionCheck.php<?php echo '?' SID?>" id="sessionCheckSID">session check</a><br />
  54.   </body>
  55. </html>

Documentation generated on Sun, 09 Sep 2007 17:09:28 +0200 by phpDocumentor 1.3.1