Hi, Basically I am trying to create AJAX, PHP and Javascript supported live chat. I am having a problem with the below: When user write something in a textbox and sends it then this text is added to DB using AJAX and then shown on his screen using AJAX return as it is too much easy but problem is that how I will let the Admin know that any new message is received, well the admin is also connected to chat but I can update a user's screen on the event of INSERTING A MESSAGE TO DATABASE but how could I know the admin of this message. I have following idea in my mind to let the admin knows about it. I will use javascript to run a simple AJAX script every second. That AJAX script will get the record from database and update it to the ADMIN's screen but problem is here that I read some where that contacting to database many times in a script will cause to much server load, so if I contact my database every second then it will be very harmful for my site. I have read this somewhere but I did not have self experience of this so if anyone of you can guide me then I will be very thankful to him. I am waiting for your helpful replies. Thanks in Advance. sweetguyzzz
I use a messageboard which uses sessions. I have a login script which uses sessions. I have a charting app which uses sessions. How does PHP handle this? Does it create three different sessions or is everything handled by the one session file? In other words, is it working like magic and I don't need to worry about it. What I'm confused with is that at the start of the login script there is a start_session() and other session related stuff. On logout, the session is destroyed. Now does this affect the start_session() of the other scripts?