jeeva Posted July 17, 2008 Share Posted July 17, 2008 Hi frnds, How to give expire time for a particular session? For Example: I have two session variable like $_SESSION['id']="jee5" $_SESSION['name']="jeeva" now i want give expire time for $_SESSION['name'] not for $_SESSION['id'] Hw can i do this? Jeeva Link to comment https://forums.phpfreaks.com/topic/115216-session-expire/ Share on other sites More sharing options...
unkwntech Posted July 17, 2008 Share Posted July 17, 2008 Although I'm not 100% sure I don't think its possible I would consider using a cookie to store the info, that you want to keep, just set an expiration date for the cookie. Link to comment https://forums.phpfreaks.com/topic/115216-session-expire/#findComment-592421 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.