Thanks a lot Tim for the suggestion..
We are trying to make the login system from a mobile application and for that the temporery solution is thought for the GET method, we will make it more secure later. Priority here, is for the login system.
I have developed system for some level for the login. I have made a hidden moodle login form which takes username and password from previous page and make login in the moodle successfully. But, now I want to generate an XML for the logged in user's details and I also developed a page for that. But, the problem here is faced by the $_SERVER['HTTP_REFERER'].
I want the user to be passed on the XML page if the user is logged in from the custom login page and to pass the user to home page if the user is logged in from the default moodle page. So, I applied a $_SERVER['HTTP_REFERER'] condition for the custom login page on the moodle home page.
But in the $_SERVER['HTTP_REFERER'], user always get the custom login page eventhough the home page is opened directly.
Can you help or suggest for the login system ot this problem?
TIA,
Regards..
Sid