-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new Authentication\Storage\Session class
- Loading branch information
1 parent
76af7cb
commit b60c548
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
library/Soliant/SimpleFM/ZF2/Authentication/Storage/Session.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,27 @@ | |||
<?php | |||
/** | |||
* This source file is subject to the MIT license that is bundled with this package in the file LICENSE.txt. | |||
* | |||
* @package Soliant\SimpleFM\ZF2 | |||
* @copyright Copyright (c) 2007-2013 Soliant Consulting, Inc. (http://www.soliantconsulting.com) | |||
* @author jsmall@soliantconsulting.com | |||
*/ | |||
|
|||
namespace Soliant\SimpleFM\ZF2\Authentication\Storage; | |||
|
|||
use Zend\Authentication\Storage\Session as ZendSession; | |||
|
|||
class Session extends ZendSession | |||
{ | |||
public function setRememberMe($rememberMe = 0, $time = 1209600) | |||
{ | |||
if ($rememberMe == 1) { | |||
$this->session->getManager()->rememberMe($time); | |||
} | |||
} | |||
|
|||
public function forgetMe() | |||
{ | |||
$this->session->getManager()->forgetMe(); | |||
} | |||
} |