<commit_before><?php declare(strict_types=1);
/**
 * Uthando CMS (http://www.shaunfreeman.co.uk/)
 *
 * @package   UthandoUser\Authentication
 * @author    <NAME> <<EMAIL>>
 * @link      https://github.com/uthando-cms for the canonical source repository
 * @copyright Copyright (c) 2015 Shaun Freeman. (http://www.shaunfreeman.co.uk)
 * @license   see LICENSE
 */

namespace UthandoUser\Authentication;

use Zend\Authentication\Storage\Session;

/**
 * Class Storage
 *
 * @package UthandoUser\Authentication
 */
class Storage extends Session
{
    public function rememberMe(int $rememberMe = 0, int $time = 1209600): void
    {
        if ($rememberMe == 1) {
            ini_set('session.gc_maxlifetime', (string) $time);
            $this->session->getManager()->rememberMe($time);
        }
    }

    public function forgetMe(): void
    {
        $this->session->getManager()->forgetMe();
    }
}<commit_msg>can't set this here anymore<commit_after><?php declare(strict_types=1);
/**
 * Uthando CMS (http://www.shaunfreeman.co.uk/)
 *
 * @package   UthandoUser\Authentication
 * @author    <NAME> <<EMAIL>>
 * @link      https://github.com/uthando-cms for the canonical source repository
 * @copyright Copyright (c) 2015 <NAME>. (http://www.shaunfreeman.co.uk)
 * @license   see LICENSE
 */

namespace UthandoUser\Authentication;

use Zend\Authentication\Storage\Session;

/**
 * Class Storage
 *
 * @package UthandoUser\Authentication
 */
class Storage extends Session
{
    public function rememberMe(int $rememberMe = 0, int $time = 1209600): void
    {
        if ($rememberMe == 1) {
            //ini_set('session.gc_maxlifetime', (string) $time);
            $this->session->getManager()->rememberMe($time);
        }
    }

    public function forgetMe(): void
    {
        $this->session->getManager()->forgetMe();
    }
}
{'fraction_non_alphanumeric': 0.14845024469820556, 'fraction_numerical': 0.015225666122892877, 'mean_word_length': 3.16289592760181, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 22, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1203592', 'n_tokens_mistral': 597, 'n_tokens_neox': 558, 'n_words': 123}