Permalink
Browse files

Add new Authentication\Storage\Session class

  • Loading branch information...
1 parent 76af7cb commit b60c54864d5b382bf74e7dbc1ce9f21109e63899 @jeremiahsmall jeremiahsmall committed Mar 10, 2013
Showing with 27 additions and 0 deletions.
  1. +27 −0 library/Soliant/SimpleFM/ZF2/Authentication/Storage/Session.php
@@ -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.