0

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.

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by ryan311
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.