Hey Jacob, Achieving what you want is a matter of just laying the correct workflow of this the feature and then programing it.
First you make all users by default join an APE channel, Ex: presence. This would be done using the client side JS framework. And yes, this means loading and connecting to APE on all pages. When joining the presence channel make sure to include something with which you can later identify the user: id, session id ... Note: the presence channel can be a readonly channel. While you at it you should also configure this channel to listen for an event or RAW that you will be sending to this channel. Ex: kicked. The functionality of the kicked event can be as simple as just redirecting the user to a logout script. On APE, create an inlinepush like module which registers a command. Ex: KICKUSER. This command should expect an identifier for a user to kick out, Ex: id, session id. Within this command you will load the presence channel, loop through its users and intersect the user that matches the identifier provided by the command invocation. Once you have your user, send the kicked event/RAW Now, how do we trigger this whole madness? Just trigger the the command providing it the user identifier. If you read about inlinepush you'll probably know that triggering a command is just a simple http request which you can execute from your PHP script that kicks out a user. And that might be it. Hopefully you will at least have a better idea what to look for in the available online resources. Note: it might also make more sense to you if your read the steps backwards Cheers, On Jun 5, 2014 6:26 PM, "jacob manners" <[email protected]> wrote: > I searched for inline push and not much was found besides problems people > were having on google groups. I have a simple understanding of how it > works, but how would i send an inline push from one page to another. Do i > have to load ape on both pages or can i just send a message to the page > that already has ape loaded. i am trying to log someone out when someone > with the same username logs in through a different browser... deleting a > mysql row of the person who is logging in is what im trying to do. > > -- > -- > You received this message because you are subscribed to the Google > Groups "APE Project" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/ape-project?hl=en > --- > APE Project (Ajax Push Engine) > Official website : http://www.ape-project.org/ > Git Hub : http://github.com/APE-Project/ > > --- > You received this message because you are subscribed to the Google Groups > "APE Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/ --- You received this message because you are subscribed to the Google Groups "APE Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
