roundcubemail/program/lib/Roundcube/rcube_session.php
function set_secret($secret = null)
    {
        // generate random hash and store in session
        if (!$secret) {
            if (!empty($_SESSION['auth_secret'])) {
                $secret = $_SESSION['auth_secret'];
            }
            else {
                $secret = rcube_utils::random_bytes(strlen($this->key));
            }
        }

        $_SESSION['auth_secret'] = $secret;
    }
function set_secret($secret = null)
    {
        // generate random hash and store in session
        if (!$secret) {
            if (!empty($_SESSION['auth_secret'])) {
                $secret = $_SESSION['auth_secret'];
            }
            else {
                $secret = rcube_utils::random_bytes(strlen($this->key));
            }
        }

        $_SESSION['auth_secret'] = $secret;
    }
function set_secret ( $ secret = null ) { // generate random hash and store in session if ( ! $ secret ) { if ( ! empty ( $ _SESSION [ 'auth_secret' ] ) ) { $ secret = $ _SESSION [ 'auth_secret' ] ; } else { $ secret = rcube_utils :: random_bytes ( strlen ( $ this -> key ) ) ; } } $ _SESSION [ 'auth_secret' ] = $ secret ; }
Setter for cookie encryption secret
Setter for cookie encryption secret