Login from external web app


I want to link Elgg from another web app, allowing the users already loged in it to access Elgg directly.

Which is the simplest way to do it? 

The other app is hosted in the same server, and it's not a standard app, so it's not necessary an open (and more complex) solution like OAuth