RestartsessionUsersBaseCommand Class Reference
[Usermanagement]
Restart session before logign in user - created salted session id. More...
Inheritance diagram for
RestartsessionUsersBaseCommand:
Public Member Functions |
|
get_name () | |
Returns title of command. |
|
Protected Member Functions |
|
do_execute () | |
Execute this command. |
Detailed Description
Restart session before logign in user - created salted session id.
Definition at line 8 of file restartsessionusers.cmd.php.
Member Function Documentation
RestartsessionUsersBaseCommand::do_execute | ( | ) | [protected] |
Execute this command.
Reimplemented from CommandChain.
Definition at line 19 of file restartsessionusers.cmd.php.
00019 { 00020 $ret = new Status(); 00021 /* @var $user DAOUsers */ 00022 $user = $this->get_instance(); 00023 $salt = $user->creationdate . $user->email . $user->id . $user->password . $user->modificationdate; 00024 $sess_id = Common::create_token($salt); 00025 Session::restart($sess_id); 00026 return $ret; 00027 }
RestartsessionUsersBaseCommand::get_name | ( | ) |
Returns title of command.
Reimplemented from CommandBase.
Definition at line 12 of file restartsessionusers.cmd.php.
The documentation for this class was generated from the following file:
- contributions/usermanagement/behaviour/commands/base/restartsessionusers.cmd.php