'Two sessions and two different lifetime in Laravel

If change Laravel lifetime sessions in .env file it works for all sessions. How can I determine the lifetimes of every session separately?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source