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. Quote Link to comment 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). Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.