Thank you all for your replies. We just solved it down using HTTP_REQUEST. 1.What we did was using HTTP_REQUEST a request was send to login page with post data credentials like username, password and some other field if required. 2. Then using HTTP_RESPONSE the cookies that were being sent from the application(viz wordpress,mediawiki) to the layer were retrieved into local variables. 3. Finally the cookies were set using setcookie() depending what all cookies were to be set like sessionid, username and so on. 4. Then using header('Location:URL'); the page was directed to desired loggedin page and since the cookies were also set now so the user would not have any issues in navigating through the application. If anyone is still not clear or has some doubts please do tell also suggest if this would have some loop holes. Thanks once again all. Peeyush On Jan 5, 2008 10:18 PM, Daniel Brown <parasane@xxxxxxxxx> wrote: > On Jan 5, 2008 11:41 AM, peeyush gulati <peeyushgulati@xxxxxxxxx> wrote: > > Thank you will do that > > > > Ok can i redirect the response to the browser from the layer after my > layer > > has recieved the response from the application. > > Absolutely. That's the same premise under which the PayPal IPN > works. The script ("layer") sends a request to the application, and > receives a response, parses it if necessary, and feeds that data back > to the client. > > -- > Daniel P. Brown > [Phone Numbers Go Here!] > [They're Hidden From View!] > > If at first you don't succeed, stick to what you know best so that you > can make enough money to pay someone else to do it for you. > -- Thanks and Regards Peeyush Gulati +91-9916304135