: session_start « Cookie Session « PHP






 
<html>

 <head>
  <title>Session still running</title>
  <style type = "text/css">
    body { font-family:<?php echo( $_SESSION['font'] ); ?>; }
  </style>
 </head>

 <body>
  <h3>Preferred font family is still
  <?php echo( $_SESSION['font'] ); ?> </h3>
  <a href="prefs1.php">Change font?</a>  
 </body>

</html>
  
  








Related examples in the same category

1.Encode all session data into a single string and return the result
2.Session running
3.Session starter
4.Sessions with register_globals on or off in session_test.php
5.session_start() checks to see if a session has started, and if not, it starts one.