I developed one custom php application..so i used moodle sessions in my application..so its working fine..
so what i did in my application is i fetch all the courses from moodle and i displayed in one data table so for each record of course there is one button called LAUNCH..so when user click on the button it open the scorm package of the particular course..
So now my problem is if the user open the course for the first time..when they click on the LAUNCH button it redirects them to moodle page to the enrol me page..if the user click on the enrol me button it redirects to scorm package.
i dont want to show the enrol me to the user..i want that course automatically enrolled to the user when they clicked on LAUNCH button..
can anyone help me how to do this..
thanks in advance..