Passing login sessions

Hi is it possible to pass the login session from Matrix to another script?


I'm using the Matrix user login on a site I'm building but some parts of it will be remote content which also requires the user to login. Rather than asking people to login twice I want to pass some sort of login session or cookie (whatever Matrix uses) to say that user has already loged in. Does anyone know how to do this?


If you're using Remote Content, you can pass the currently logged in user name as part of the URL or as a POST variable to your remote content script. You could then use that to auto-authenticate a user, assuming you have access to the same authentication sources. This works best if you're using LDAP so that you have the same user directory for all applications.

When people have logged in, is it possible to track it? If so, how?


e.g if PAGE A has granted access to 20 users - how would we track the time they logged in and who they are? Would matrix itself capture this information?


The system.log file contains all the login attempts, both successful and failed. We don't track where they logged in though. You would have to setup Apache parameters to pass the logged in username into the log file and then get your analytics engine to display statistics for that.