I have two session variables I want to set different lifespan for these session variants in the same page I < / P>
$ _ session ['name'] = "example_name"; // lifetime - 3 days $ _SESSION ['id'] = "example_id"; // lifetime - 7 days
You probably need better with termination. Most of the session cookies are not going to survive for 7 days.
If you really want to do this in session, record some additional session variables at the end of each value, and check them for yourself.
No comments:
Post a Comment