PHPackages                             pikanji/plaincookie-plugin - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. pikanji/plaincookie-plugin

ActiveOctober-plugin[Utility &amp; Helpers](/categories/utility)

pikanji/plaincookie-plugin
==========================

Enable non-encrypted cookies

1.0.0(7y ago)151MITPHPPHP &gt;=5.4

Since Oct 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/pikanji/oc-plaincookie-plugin)[ Packagist](https://packagist.org/packages/pikanji/plaincookie-plugin)[ RSS](/packages/pikanji-plaincookie-plugin/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

OctoberCMS Plain Cookie Plugin
==============================

[](#octobercms-plain-cookie-plugin)

[日本語版はこちら](./README_ja.md)

[OctoberCMS](http://octobercms.com/) plugin that enables unencrypted cookies.

Cookies handled by OctoberCMS are always encrypted. This plugin lets the developer to specify cookies that should not be encrypted.

This is useful when you want to let the backend code to read the cookie value set in frontend.

This plugin becomes unnecessary when [this PR](https://github.com/octobercms/library/pull/335) is merged &amp; released.

Usage
-----

[](#usage)

### Installation

[](#installation)

You can install this plugin via composer. Execute below at the root of your project.

```
composer require pikanji/plaincookie-plugin

```

### Modify app.php

[](#modify-appphp)

Modify `bootstrap/app.php` to replace `October\Rain\Foundation\Http\Kernel::class`with `Pikanji\PlainCookie\Classes\Foundation\Http\Kernel::class` in http kernel binding.

```
$app->singleton(
    Illuminate\Contracts\Http\Kernel::class,
//    October\Rain\Foundation\Http\Kernel::class
    Pikanji\PlainCookie\Classes\Foundation\Http\Kernel::class
);

```

### Specifying Cookie Names

[](#specifying-cookie-names)

There are two ways to specify the cookies that you don't want to encrypt.

#### Via Config File

[](#via-config-file)

Add `config/cookie.php` file that returns an array of the cookie names.

Example

```
