PHPackages                             vianetz/secure-cookies-magento1 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. vianetz/secure-cookies-magento1

ActiveMagento-module[Security](/categories/security)

vianetz/secure-cookies-magento1
===============================

A Magento 1 extension that improves the cookie settings for Magento frontend and admin session cookies.

5402[1 issues](https://github.com/vianetz/secure-cookies-magento1/issues)PHP

Since Apr 12Pushed 4y ago3 watchersCompare

[ Source](https://github.com/vianetz/secure-cookies-magento1)[ Packagist](https://packagist.org/packages/vianetz/secure-cookies-magento1)[ RSS](/packages/vianetz-secure-cookies-magento1/feed)WikiDiscussions develop Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Secure Cookies Extension for Magento 1
======================================

[](#secure-cookies-extension-for-magento-1)

Facts
-----

[](#facts)

- Extension key: `Vianetz_SecureCookies`

Description
-----------

[](#description)

This extension for the Magento 1 online shop software improves the default Magento session cookies:

- The `frontend` cookie will be set to `Secure` and `SameSite=Lax`
- The `adminhtml` cookie will be set to `SameSite=Strict` (this cookie is by default set to `Secure` already)

This is required e.g. in Chrome and Firefox as described in [this Google blog post](https://web.dev/samesite-cookies-explained/).

Requirements
------------

[](#requirements)

- PHP &gt;= 7.2.0
- Magento &gt;= 1.9

Installation Instructions
-------------------------

[](#installation-instructions)

For installation notes please see also [our FAQ](https://www.vianetz.com/en/faq/how-to-install-the-magento-extension.html).

#### Preparations

[](#preparations)

1. Do a backup of your Magento installation for safety reasons.
2. Disable Magento compilation feature (if activated): *System &gt; Tools &gt; Compiler*

#### a) Installation with composer (recommended)

[](#a-installation-with-composer-recommended)

3. Run `composer require vianetz/secure-cookies-magento1`

#### or b) Installation with modman

[](#or-b-installation-with-modman)

3. Clone this repository into your modman folder and run `modman deploy-all`

#### or c) Manual Installation

[](#or-c-manual-installation)

3. Unzip the setup package and copy the contents of the `src/` folder into the Magento root folder. (The folder structure is the same as in your Magento installation. No files will be overwritten.) Please assure that the files are uploaded with the same file user permissions as the Magento installation!

#### Final Tasks

[](#final-tasks)

4. Clear the Magento cache (and related caches like APC/FPC/Opcache if available)
5. Logout from the admin panel and then login again
6. Enable the Magento compilation feature (if it was activated before): *System &gt; Tools &gt; Compiler*

We also offer paid installation services. If you are interested please [contact me](https://www.vianetz.com/en/contacts).

Uninstallation
--------------

[](#uninstallation)

1. Remove the folder `app/code/community/Vianetz/SecureCookies`
2. Remove the file `app/etc/modules/Vianetz_SecureCookies.xml`

Frequently Asked Questions
--------------------------

[](#frequently-asked-questions)

Please find the [Frequently Asked Questions on our website](https://www.vianetz.com/en/faq).

Support
-------

[](#support)

If you have any issues or suggestions with this extension, please do not hesitate to [contact me](https://www.vianetz.com/en/contacts).

Developer
---------

[](#developer)

Christoph Massmann

[@vianetz](https://twitter.com/vianetz)

License
-------

[](#license)

[![GPLv3 License](https://camo.githubusercontent.com/da9c3abfd62c32a94031c3a382cb7c85dbd4cede411416837adfe6b8fda05ba1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076332d79656c6c6f772e737667)](https://opensource.org/licenses/)

This Magento Extension uses Semantic Versioning - please find more information at .

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ff492874815eed37664a65070bcd600b4cbe9b0356afa8a9ae2482119fe98e4?d=identicon)[ma4nn](/maintainers/ma4nn)

---

Top Contributors

[![ma4nn](https://avatars.githubusercontent.com/u/26252058?v=4)](https://github.com/ma4nn "ma4nn (6 commits)")

---

Tags

magento-extensionmagento1magento1-moduleopenmageopenmage-module

### Embed Badge

![Health badge](/badges/vianetz-secure-cookies-magento1/health.svg)

```
[![Health](https://phpackages.com/badges/vianetz-secure-cookies-magento1/health.svg)](https://phpackages.com/packages/vianetz-secure-cookies-magento1)
```

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[enlightn/security-checker

A PHP dependency vulnerabilities scanner based on the Security Advisories Database.

33732.2M110](/packages/enlightn-security-checker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
