hi all,

i want to use curl to automatically login on behalf of a user & get the SessionID for that user.

i will configure php to store the sessionID in the url instead in a cookie on the user's browser.

once curl has login on behalf of the user, i get the sessionID from curl .
then i access the desired website by appending the sessionID from curl.

i want to know if this is a feasible solution for automatic login to a website.

thanks
coolatt :(

It can be done on some sites simply by sending the same http request as the normal login process would send but many sites have security protocols in place which make it a little harder. I believe there is a firefox plugin that can record the http request info when you login the normal way then you can program curl to send the same data and fingers crossed for if it works.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.