i programmed a function . and wrote that regenrate session_id by session_regenerate_id() function when user register successfull , but the warning message appear :
Warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent
i want know what’s the causes of apearing this message and how to solve it
thanks alot for all , i’am understanded now … i wan’t your opinion in my method to regenrate id when user login it’s account
i put this code in first of each page
it’s regenrate the session id when user login and visit every page …
what’s your opinion ? is this true method to change session id when user visit every page in script after login ?