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 Link to comment https://forums.phpfreaks.com/topic/100235-solved-php-session/ 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. Link to comment https://forums.phpfreaks.com/topic/100235-solved-php-session/#findComment-512510 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. Link to comment https://forums.phpfreaks.com/topic/100235-solved-php-session/#findComment-512511 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. Link to comment https://forums.phpfreaks.com/topic/100235-solved-php-session/#findComment-512518 Share on other sites More sharing options...
justphpdev Posted April 8, 2008 Author Share Posted April 8, 2008 thx Link to comment https://forums.phpfreaks.com/topic/100235-solved-php-session/#findComment-512519 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.