I understand the normal application of a persistent cookie vs a session cookie. But if you can specify the expiration time of a session cookie to behave like a persistent cookie and vice-versa. Is there any benefit to using session cookies besides them being obfuscated from the user and the session is stored on the server?
session_set_cookie_params()
function allows you to set a specific expiration time for a session. You can set the time in a persistent cookie in the setcookie()
function.
I already pulled up the threads Cookie VS Session and Session cookies and persistent cookies, and didn't find my answer.