Questions tagged [laravel-session]
101 questions
0
votes
2 answers
Session is not getting saved after page redirect in Laravel Application
I am redirecting the page after a successful login check and the session is created but the session is not available after page redirection.
My Login Controller:
$validated = $request->validate([
'email' => 'required|email',
'password' =>…
0
votes
1 answer
Laravel Session is not storing new items but it's overwriting
I was trying to add new items to a session container, and if old items are available then I'll just push the new items to the container. Now whenever I'm adding new items it's storing the current item by replacing the previous item, where is the…
0
votes
1 answer
Unable to retrieve data stored on Laravel session on subsequent requests
I am writing a programme that requires a multi-step form before all the validated data will be stored in the database. For instance, Users have to provide their personal information before proceeding to the next step, and I want the validated data…

Smartdev
- 3
- 3
0
votes
3 answers
Session put does not seem to be working properly
I'm working with Laravel 5.8 and I wanted to make sure that users can submit a form only every 2 hours (as long as a session is alive).
So I tried this at the Controller:
if(Session::has('request_has_been_sent')){
return…

Pouya
- 114
- 1
- 8
- 36
0
votes
0 answers
Laravel Session with database driver keeps updating after logging out
I switched to database driver for Session and migrated the table. I've noticed that even after the logout action, the value last_activity in the table keeps getting updated after every refresh, even if the user isn't logged-in anymore.
I've tried…

Jaeger
- 1,646
- 8
- 27
- 59
0
votes
2 answers
Laravel 5.8: Request session does not seem to setting the session at Controller
My request session doesn't seem to set the session in the controller. As you can see by saying $request->session()->flash('charge_wallet',$wallet);, I tried to set the session charge_wallet.
Then in the view, bankGateWay.getToken, I tried checking…
user16658188
0
votes
1 answer
Laravel 8 config "SESSION_STORE" and ''SESSION_DRIVER"
Laravel 8 has config file config\session.php
this file has 2 parameters to store
'driver' => env('SESSION_DRIVER', 'file'),
and
'store' => env('SESSION_STORE', null)
Both can be "apc", "dynamodb", "memcached", "redis"
The only difference I see is…

Yevgeniy Afanasyev
- 37,872
- 26
- 173
- 191
0
votes
1 answer
Session still submitted after redirecting view
I am working on an Online Store project using Laravel 5.8 and in this project I have added a checkbox for checking if user wants to pay the price by his online wallet:
user9277271
0
votes
0 answers
Laravel session variable changes back to old value after axios request
I have a strange behaviour in my Laravel + Vue app.
On the Checkout page there is a component that handles the payment method select, 3 radio buttons with a v-model on the paymentMethod in state with invoice initial value.
data() {
return {
…

Alecss Alecs
- 1
- 1
- 2
0
votes
1 answer
How does an HTTP session exactly work and in what cases does it expire (in Laravel)?
I'm creating a Laravel application and I'm trying to grasp the concept of the HTTP session. I noticed that I don't really understand it on a fundamental level (e.g. what exactly happens).
On the internet there isn't much information available…

ralphjsmit
- 477
- 2
- 16
0
votes
1 answer
MongoDB StartSession failed commit and rollback
I am working with the Laravel framework and using MongoDB. So I need to commit and roll back the collection save, but I get the following error in response.
Server does not support sessions
Does my MongoDB installation not support sessions? If…

B L Praveen
- 1,812
- 4
- 35
- 60
0
votes
1 answer
Laravel 5.8: Can you help me with this problem about sessions
I have an Online Store project written in Laravel 5.8 and in this project, I have set some sessions at the Controller, like this:
$delivery_types = [];
$conflicting = false;
if ($foundOrder != null) {
foreach ($foundOrder as…
user9277271
0
votes
1 answer
Laravel : how to maintain different sessions of a same page?
I need to put session on the same page sidebar. when user click on any button session will get for that tab. like
Search Job
Customers
etc
In the sidebar the button or not link with any page. i am creating a dialogue box for each so their is no…

Muqadar Ali
- 57
- 2
- 11
0
votes
1 answer
Shared session between laravel and vue apps
I have 3 apps and those 2 are laravel apps and 1 is vuejs
I've tried setting up session to store session data in to the database so that I can have a shared sessions between my apps.
Things work between laravel apps, however, I have trouble when it…

yareyaredaze
- 85
- 2
- 10
0
votes
1 answer
Laravel, common page for guest and user, session table user_id null
In session table, user id is null when user visit guest page.
Route::get('/', [HomeController::class, 'index',])->name('home');
Route::group(['middleware' => ['auth:user']], function () {
Route::get('/dashboard', [HomeController::class,…

parth
- 1,803
- 2
- 19
- 27