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

Продлить сессию на 1 неделю #15

Open
alexey2baranov opened this issue Dec 15, 2019 · 4 comments
Open

Продлить сессию на 1 неделю #15

alexey2baranov opened this issue Dec 15, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@alexey2baranov
Copy link
Collaborator

Установить сессию длительностью на 1 неделю.

Нынешняя сессия имеет тип Session закрывается сама собой когда закрывается окно браузера. Во всех приложениях сессия устанавливается другого типа Expires (на определенное время).

Чтобы не мучиться с постоянными перезаходами

@alexey2baranov alexey2baranov added the enhancement New feature or request label Dec 15, 2019
@alexey2baranov alexey2baranov added this to the v0.1.0 milestone Dec 15, 2019
@artemdigi
Copy link
Collaborator

artemdigi commented Dec 16, 2019

тести

@alexey2baranov
Copy link
Collaborator Author

https://imgur.com/1ZPFsYx.png

Сессия продливается на неделю как надо, но приложение на нее не реагирует и запрашивает пароль как раньше! (см. скриншот)

@alexey2baranov alexey2baranov changed the title Сменить тип PHP сессии с Session на Expires 1 неделя Продлить сессию на 1 неделю Jan 15, 2020
@artemdigi
Copy link
Collaborator

добавил remember_me на неделю, проверь

@alexey2baranov
Copy link
Collaborator Author

alexey2baranov commented Jan 19, 2020

Что-то не работает. Вчера на ноуте вошел через ВК. Ночью ноут был выключен. С утра опять просит войти.
Сегодня 19ое. Кука истекает 26го. Но сервер тем не менее просит авторизацию. Возможно симфоньчный бандл хранит сессию короткое времени, кука на клиенте еще хранится до 26го, а на сервере запись про нее уже истекла. Если дело в этом, то надо увеличивать время хранения сессии на сервере.

https://imgur.com/s3g4iIc.png

@alexey2baranov alexey2baranov removed this from the v0.1.0 milestone Jan 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants