Having said that, it is easy enough to do it the other way round.
the structure would be:
$username = get_username_from_other_app_cookie();
$user = get_user_by_username($username);
login($user);
Ok, but where would you put that code? It doesn't seem to work doing that into engine/lib/sessions.php->authenticate
You would put it in a plugin.
Never alter core code.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.