Hi. I am making a chat program.
In the index.php file, I create a session 'session_username'. I use ajax when someone chat, so I send the message to another php file. That php file should get the session_username session and write that + the message to mySQL, but there are no sessions.
At the end of the document I wrote echo $_SESSION, but it is empty, I also tryed echo $_SESSION, but that is also empty.
So please help me.