Forum LAMS for Tech-Heads - General Forum: Re: Getting organisationID after creating lesson


 
Search: 

3: Re: Getting organisationID after creating lesson
In response to 1 01/18/10 09:49 PM
[ Reply | Forward ]
Hi Praveen

If you look at the access logs when you start a lesson, you will see there is actually several calls to the server - this is because lams needs to handle different class sizes and what not. So a sample log is like so:

115.64.23.19 - test1 [18/Jan/2010:21:56:37 -0600] "POST /lams/monitoring/initializeLesson HTTP/1.1" 200 299
115.64.23.19 - test1 [18/Jan/2010:21:56:37 -0600] "POST /lams/monitoring/createLessonClass?userID=5 HTTP/1.1" 200 298
115.64.23.19 - test1 [18/Jan/2010:21:56:37 -0600] "GET /lams/monitoring/monitoring.do?method=startLesson&lessonID=2&userID=5 HTTP/1.1" 200 297
115.64.23.19 - test1 [18/Jan/2010:21:56:39 -0600] "GET /lams/Presence.do?method=createXmppRoom&lessonId=2 HTTP/1.1" 200 301

The first call (initializeLesson) does not link the lesson to an organisation or class, its the second call (createLessonClass) that does so.

So I think the reason your not getting info about the organisation is because it hasnt been linked yet, try doing it after the second call, perhaps after "startLesson" is the best call.

Luke

Posted by Luke Foxton

Reply to first post on this page
Back to LAMS for Tech-Heads - General Forum