redbrad0 Posted July 13, 2008 Share Posted July 13, 2008 I have never had the need to use the users session id, but now I am in need and I know this will be a quick and basic question. If I write the session_id onto the webpage, the number changes all the time (when cookies are disabled). Shouldn't this number always stay the same? echo session_id(); Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted July 13, 2008 Share Posted July 13, 2008 The user must provide the session ID. There is no way for the server to track the user. Normally, the session ID is set in a cookie. If you're really against this, you can set PHP to pass the ID around in the URL or in hidden fields. This is not without its own set of problems, however. 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.