Skip to content

Commit

Permalink
Add new Authentication\Storage\Session class
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahsmall committed Mar 10, 2013
1 parent 76af7cb commit b60c548
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions library/Soliant/SimpleFM/ZF2/Authentication/Storage/Session.php
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();
}
}

0 comments on commit b60c548

Please sign in to comment.