Can someone be generous enough to provide comprehensive login/logout code here for an application. I understand there has some issues when it comes to session(setting and destroying). I believe it will be a good base to answer all session related questions. A simple MVC app will do