U
U
UncleDenn2017-09-02 18:33:03
Laravel
UncleDenn, 2017-09-02 18:33:03

How to save session forever in laravel?

Hello everyone, how to save a language session forever?
I have 2 languages ​​​​on the site, but Laravel remembers the selected one for a day, and then returns the default, how to fix it?
I am using session.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
U
UksusoFF, 2017-09-02
@UncleDenn

https://github.com/laravel/laravel/blob/master/con...

A
Alex Art, 2017-09-02
@WebmasterW3S

Well, use cookies. What is the problem? Sessions are limited by PHP settings, as far as I remember.
ini_set('session.gc_maxlifetime', 10800); //30 minutes

M
Maxim Fedorov, 2017-09-02
@Maksclub

Obviously, in addition to everything else, you need to try to make the default language for default conditions :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question