TYPO3 CMS  TYPO3_6-2
SessionStorage.php
Go to the documentation of this file.
1 <?php
3 
26 
33  public function __construct() {
34  if (!isset($_SESSION) || !is_array($_SESSION)) {
35  session_start();
36  }
37  }
38 
45  public function get() {
46  return isset($_SESSION['tx_rsaauth_key']) ? $_SESSION['tx_rsaauth_key'] : NULL;
47  }
48 
55  public function put($key) {
56  $_SESSION['tx_rsaauth_key'] = $key;
57  }
58 
59 }