justphpdev Posted April 8, 2008 Share Posted April 8, 2008 hi i want to send message (echo) from a session to another session,in more details there will be two users, when the first user access any php script a session will be created for him/her, when the second user access my php script and write and a statement, the statement must be sent directly to the other user. i know it not clear, but the bottom line is that from a specific session i can send a data to another session. thx Quote Link to comment Share on other sites More sharing options...
trq Posted April 8, 2008 Share Posted April 8, 2008 Sessions are completley independent of each other. Sounds like your looking for a messaging system. You will need to store messages for a particular user in a database and on there next request display it. Should be quite a few examples around on google. Quote Link to comment Share on other sites More sharing options...
justphpdev Posted April 8, 2008 Author Share Posted April 8, 2008 ok thats similar to want i want, but instead i want to send the data directly to the user without requesting the pages again, in the client browser there will be a flash app that will receive the data. Quote Link to comment Share on other sites More sharing options...
trq Posted April 8, 2008 Share Posted April 8, 2008 Then that flash app will need to keep making background requests to a php file which will check to see if there are any messages in the database for said user and if there are, get them. Quote Link to comment Share on other sites More sharing options...
justphpdev Posted April 8, 2008 Author Share Posted April 8, 2008 thx Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.