Authentication

How to retrieve MoodleSession cookie from within (customized) login/index.php