2017 © Pedro Pelรกez
 

library laravel-cookieless-session

Laravel middleware to start a cookieless session

image

kevinsimard/laravel-cookieless-session

Laravel middleware to start a cookieless session

  • Thursday, March 23, 2017
  • by kevinsimard
  • Repository
  • 3 Watchers
  • 9 Stars
  • 12,725 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 3 Versions
  • 10 % Grown

The README.md

Laravel Cookieless Session Middleware

All you need to do is to add the following key X-Session-Token to your requests" headers to load sessions., (*1)

Installation

Replace the original start session middleware in app/Http/Kernel.php., (*2)

<?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., (*3)

"providers" => [
    ...
    //"Illuminate\Session\SessionServiceProvider",
    "Kevinsimard\CookielessSession\Providers\SessionServiceProvider",
    ...
],

Code Structure

โ”œโ”€โ”€ src
โ”‚ย ย  โ””โ”€โ”€ Kevinsimard
โ”‚ย ย      โ””โ”€โ”€ CookielessSession
โ”‚ย ย          โ”œโ”€โ”€ Middleware
โ”‚ย ย          โ”‚ย ย  โ””โ”€โ”€ StartSession.php
โ”‚ย ย          โ””โ”€โ”€ Providers
โ”‚ย ย              โ””โ”€โ”€ SessionServiceProvider.php
โ”œโ”€โ”€ .editorconfig
โ”œโ”€โ”€ .gitattributes
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ LICENSE.md
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ composer.json

License

This package is open-sourced software licensed under the MIT license., (*4)

The Versions

23/03 2017

dev-master

9999999-dev

Laravel middleware to start a cookieless session

  Sources   Download

MIT

The Requires

 

by Kevin Simard

laravel token session cookieless

22/09 2016

v1.2.4

1.2.4.0

Laravel middleware to start a cookieless session

  Sources   Download

MIT

The Requires

 

by Kevin Simard

laravel token session cookieless

07/04 2016

v1.2.3

1.2.3.0

Laravel middleware to start a cookieless session

  Sources   Download

MIT

The Requires

 

by Kevin Simard

laravel token session cookieless