What is the best way to log a user in programatically in ExpressionEngine
Posted
by
bjohnb
on Stack Overflow
See other posts from Stack Overflow
or by bjohnb
Published on 2012-10-25T16:30:47Z
Indexed on
2012/10/25
17:00 UTC
Read the original article
Hit count: 166
php
|expressionengine
I'm building an app that allows the app to hit an ACT url which then triggers a module method to create a new entry using the ExpressionEngine API. However, as there is no user logged in / loggin in, it is not allowed to submit an entry to a channel.
What is the best way to do this. Bypass the EE api and submit the entry manually, or log a user in progamatically..but then how would that work with sessions etc etc?
If the answer is to "log a user in" it would be great to see a code sample if possible.
Thanks!
© Stack Overflow or respective owner