In ExpressionEngine, sometime it may needed to login a member manually not from the login area by having the username / password. All the member’s sessions are being created and managed with Session Class. We can use the same session class to login a member manually.

Here is the code:

I think, it would be pretty easy for someone who would like to have such a feature.