Wrote an authorization script. Filled on the home computer - it works. Filled on a hosting - does not work. Found that on the hosting when you refresh the page and move from one to another, the session id is constantly changing. On a home computer, this does not happen.
Source pages are available on the home computer at the links:
Login to check temoffey, password 123456.
Please help me understand what the reason for this behavior.
Thank you in advance.
To use cookie-based sessions, session_start () must be called before outputting anything to the browser.
This function must be called before any output .
You do not have it "different", it is simply not installed.
<? session_start(); // code, code, code... ?> <!DOCTYPE ...
It is possible that you have forced caching with a large buffer on your home computer, but not on the hosting.