Package Data | |
---|---|
Maintainer Username: | kevinsimard |
Maintainer Contact: | kev.simard@gmail.com (Kevin Simard) |
Package Create Date: | 2015-05-04 |
Package Last Update: | 2023-06-03 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-26 15:10:55 |
Package Statistics | |
---|---|
Total Downloads: | 16,919 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 14 |
Total Watchers: | 3 |
Total Forks: | 5 |
Total Open Issues: | 1 |
All you need to do is to add the following key X-Session-Token
to your requests" headers to load sessions.
Replace the original start session middleware in app/Http/Kernel.php
.
<?php namespace App\Http;
use Illuminate\Foundation\Http;
class Kernel extends Http\Kernel
{
/**
* @var array
*/
protected $middleware = [
//"Illuminate\Session\Middleware\StartSession",
"Kevinsimard\CookielessSession\Middleware\StartSession",
...
];
...
Replace the original session service provider in config/app.php
.
"providers" => [
...
//"Illuminate\Session\SessionServiceProvider",
"Kevinsimard\CookielessSession\Providers\SessionServiceProvider",
...
],
├── src
│ └── Kevinsimard
│ └── CookielessSession
│ ├── Middleware
│ │ └── StartSession.php
│ └── Providers
│ └── SessionServiceProvider.php
├── .editorconfig
├── .gitattributes
├── .gitignore
├── LICENSE.md
├── README.md
└── composer.json
This package is open-sourced software licensed under the MIT license.