topical media & game development

talk show tell print

professional-php-15-userssession-variabletest.php / php



  <?php
  require_once("usersession.phpm");
  
  objSession = new UserSession();
  objSession->Impress();
  
  ?>
  UserSession Variable Test Page
  <HR>
  <B>Current Session ID: </B> <?=objSession->GetSessionIdentifier();?><BR>
  <B>Logged in? </B> <?=((objSession->IsLoggedIn() == true) ? "Yes" : "No")?><BR>
  <BR><BR>
  <B>Current value of TESTVAR:</B> [<?=objSession->TESTVAR?>]<BR>
  <BR><BR>
  Setting TESTVAR to 'foo'
  <BR><BR>
  <?php
    objSession->TESTVAR = 'foo';
  ?>
  <B>Current value of TESTVAR:</B> [<?=objSession->TESTVAR?>]<BR>
  <BR><BR>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.