fembri/lspcs 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fembri/lspcs

最新稳定版本:1.1.2

Composer 安装命令:

composer require fembri/lspcs

包简介

Laravel Session patch to support concurrent request.

README 文档

README

Laravel Session patch to support concurrent request.

Installation

Open your composer.json file and add the new required package.

"fembri/lspcs" : "1.0.*"

Next, open your terminal and run composer update. After composer updated, replace laravel Illuminate\Session\SessionServiceProvider in app/config/app.php with:

'Lspcs\SessionServiceProvider',

Done.

How it works

Laravel session mechanism save its data on the end of a single request, so when you modify your session data in a request laravel don't really save it to the storage. We simply modified it, read directly from storage before you get the data or before you update the data, and then write it to the storage. Sure it would slow down the performance, but you can activate its persistent mode only when you need it.

Usage

Session::persistentMode(true);

统计信息

  • 总下载量: 125
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-05