Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel Session OverWriting Every Time On Each Request #28147

Closed
DhavIndian opened this issue Apr 9, 2019 · 3 comments
Closed

Laravel Session OverWriting Every Time On Each Request #28147

DhavIndian opened this issue Apr 9, 2019 · 3 comments

Comments

@DhavIndian
Copy link

DhavIndian commented Apr 9, 2019

  • Laravel Version: 5.8
  • PHP Version: 7.2
  • Database Driver & Version:

Description:

Steps To Reproduce:

File
vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php
Issue On Line Number 66
$this->saveSession($request);
Due this function Session FIle is OverWritten in each and Every Request
This Causes Issues in Real Time System where repeated ajax request is present
This is not good to rewrite session on each and every request i temporary rewrite in vendor

if (!$request->ajax() || $request->saveSession === true) {
$this->saveSession($request);
}

Please Solve As Soon

@driesvints
Copy link
Member

Hi there,

Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:

Thanks!

@DhavIndian
Copy link
Author

This is not a question why you closed without solving ....

@trevorgehman
Copy link
Contributor

trevorgehman commented Jan 2, 2020

@DhavIndian Take a look at this: #30996

There is a PR that attempts basically what you are proposing: #29410

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants