[Solved] PHP session variables wont work


session_start() should be at the very top of your document and header() should only be executed before any output has taken place on the website.

1

solved PHP session variables wont work