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.
ErlendHL 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.