Is there any way I can store a $_SESSION variable for a limited amount of time?. Imagine I generate an identifier and I want it be stored for like 2 hours, is this possible? And I want that variable stored even if someone delete the cookies.
This is how I give $_SESSION a random identifier:
session_start();
if (!$_SESSION['randomid'])
{
$_SESSION['randomid'] = uniqid();
}
Thank you in advance,