Ignore:
Timestamp:
May 30, 2019 5:28:57 AM (5 years ago)
Author:
anonymous
Message:

Remove App's 'ssl_domain' and 'ssl_enabled' parameters; determine SSL usage by detecting the presence of HTTPS env var (or HTTP_X_FORWARDED_PROTO). Update Session parameters for greater logevity and security. Add 'session_dir' to store site-specific sess_* files with a longer gc_maxlifetime duration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Auth_SQL.inc.php

    r674 r690  
    610610     *  - remote address is the same as the login remote address
    611611     *
     612     * TODO: implement persisten sessions as per https://paragonie.com/blog/2015/04/secure-authentication-php-with-long-term-persistence
     613     *
    612614     * @access public
    613615     */
     
    771773
    772774            // Login scripts must have the same 'login' tag for boomerangURL verification/manipulation.
    773             $app->setBoomerangURL(absoluteMe(), 'login');
     775            $app->setBoomerangURL(getenv('REQUEST_URI'), 'login');
    774776            $app->dieURL($this->_params['login_url']);
    775777        }
Note: See TracChangeset for help on using the changeset viewer.