ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.AccessSessionRepository.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
29 {
30  public const KEY_BASE = "port_acc_";
31 
32  public function __construct()
33  {
34  }
35 
36  public function setSharedSessionPassword(int $node_id, string $pw): void
37  {
38  $key = self::KEY_BASE . "_shpw_" . $node_id;
39  \ilSession::set($key, $pw);
40  }
41 
42  public function getSharedSessionPassword(int $node_id): string
43  {
44  $key = self::KEY_BASE . "_shpw_" . $node_id;
45  if (\ilSession::has($key)) {
47  }
48  return "";
49  }
50 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
get(string $class_name)
static has($a_var)
static set(string $a_var, $a_val)
Set a value.