Support the ongoing development of Laravel.io →
posted 9 years ago
Session
Last updated 1 year ago.
0

Why not set the expire time in config/session.php?

'lifetime' => 60
Last updated 1 year ago.
0

because I have other sessions and I want set just for this one...

look at :

  if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > 1800))

how can I minus 2 dates or times?

laravel gives me error about that, can you tell me the code equal in laravel?

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

prgmsaha prgmsaha Joined 20 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.