Ideally the initial session id will remain the same throughout a session unless the developer has explicitly asked PHP to change it by the session_regenerate_id() function or the session_id() function. However, thereâ€™s a slight chance that you may encounter this problem of automatic changing session ID upon every new request when you are developing things up, such as, on a localhost. You may be mad at PHP causeâ€™ this way you wonâ€™t be able to use session id to track things out (which may be seldom, but still).
So whatâ€™s the problem?
You have set the browser to reject all cookie. You donâ€™t know browsers track sessions via cookie?! HTTP is stateless, dumbass!