Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Secure Login

4,339 sites Security covered Drupal 11 · not 10
View on drupal.org

Secure Login redirects users to HTTPS for login and other sensitive forms, protecting private data from being transmitted insecurely. It also enforces secure authenticated session cookies to prevent session hijacking.

For sites that are available via both HTTP and HTTPS, Secure Login ensures that the user login and other forms are submitted securely via HTTPS, thus preventing passwords, authenticated session cookies, and other private user data from being transmitted in the clear.

Secure Login locks down not just the user/login page but also any page containing the user login block, and any other forms that you configure to be secured.

Secure Login enforces secure authenticated session cookies, thus preventing session hijacking by eavesdroppers.

Note that in current versions of Drupal, unlike Drupal 7, anonymous insecure session data is not migrated to an authenticated secure session upon login; instead, an empty secure session is created.

Drupal 7

Secure Login is intended for sites that want to offer anonymous sessions via HTTP or HTTPS and authenticated sessions only via HTTPS. Anonymous insecure sessions are migrated to authenticated secure sessions upon login, with all session data intact. Secure Login is designed to work with Drupal 7's $conf['https'] setting at its default value, FALSE.

If you were to change $conf['https'] to TRUE, you would enable mixed-mode (HTTPS and HTTP) authenticated sessions: both secure and insecure session cookies are set when a user logs in to the HTTPS site. Other contributed modules, such as Secure Pages, may assist you with implementing mixed-mode authenticated sessions.

Drupal 6

Prior to Drupal 7, PHP's session.cookie_secure flag must be enabled on the HTTPS site to enforce secure authenticated session cookies.

Pro tip: HSTS

To help protect against SSL stripping attacks, add the Strict-Transport-Security header in your webserver or Security Kit module configuration, and add your domain to the browser HSTS preload list.

Credits

Secure Login is developed and maintained by mfb, along with other contributors from the community. You can support development by sponsoring or contributing. 🔐👷

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
12
Tracked since
Oct 2024
Latest release
1 month ago
Releases (12 mo)
9 ▲ from 3
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.0.4 Stable 11 Jul 3, 2026
2.0.3 Stable 11 Sep 9, 2025
8.x-1.21 Stable 9–11 Sep 9, 2025
2.0.2 Stable 11 Sep 8, 2025
8.x-1.20 Stable 9–11 Sep 8, 2025
2.0.1 Stable 11 Sep 8, 2025
8.x-1.19 Stable 9–11 Sep 8, 2025
2.0.0 Stable 11 Sep 8, 2025
2.x-dev Dev 11 Sep 8, 2025
8.x-1.18 Stable 9–11 Aug 23, 2025
7.x-1.11 Stable Aug 23, 2025
8.x-1.17 Stable 9–11 Oct 10, 2024