mb81 Posted May 9, 2006 Share Posted May 9, 2006 I'm getting into some more advanced work with sessions and thought I would throw out a question: Is there any way, using just $_SESSION variables and PHP functions, to determine if there has ever been a session for that user? I'm not really trying to get into cookies and all that, just trying to see if the person has been there before and send give them a different message based on that information. Link to comment https://forums.phpfreaks.com/topic/9407-information-on-expired-sessions/ Share on other sites More sharing options...
trq Posted May 9, 2006 Share Posted May 9, 2006 Nope. When a session has expired both the client-side and server-side cookies are deleted (well expired and unreadable at least). Link to comment https://forums.phpfreaks.com/topic/9407-information-on-expired-sessions/#findComment-34662 Share on other sites More sharing options...
wildteen88 Posted May 9, 2006 Share Posted May 9, 2006 Actually no cookies/session files get deleted from the client or the server. What happens is PHP sets a sessionid in a special cookie which wont work after the user closes the browser or if the script that uses sessesions destroys the session. Link to comment https://forums.phpfreaks.com/topic/9407-information-on-expired-sessions/#findComment-34721 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.