Hi, I need user credentials (sesskey, moodlesession) for a php file that it's executed once a month automatically.
I've tried using POST (curl) to the login/index.php page but it returns de login page instead of actually login in.
I need to storage the sesskey and moodlesession into variables for be able to execute some scripts automatically.
Can someone please help me?