remote login php+curl

Discussion forum for Extension Writers regarding Extension Development.
Post Reply
super.user
Registered User
Posts: 50
Joined: Tue Feb 14, 2017 1:22 pm

remote login php+curl

Post by super.user »

I have created an extension for my website. It should log in user to forum after he has logged on website.
I found a lot of solution but they all could not help me.
I think I do something wrong with curl post and cookie.

Could anyone help me with this issue ???
For the 2d animated cartoons!!! and web. Of course web :D

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50986
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: remote login php+curl

Post by stevemaury »

I am moving this to Extension writers' discussion. But even they will probably need some information.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

super.user
Registered User
Posts: 50
Joined: Tue Feb 14, 2017 1:22 pm

Re: remote login php+curl

Post by super.user »

OK. Thanks.

I forget to say:
User session was created successfully, but user still not logged in.
Also. If I try log in with external login form, it's works great(the session has been created and user has been logged in). And I think that is means, the problem not in my authentication extension.

What curl options should I set to login?
Or maybe you can give me some useful links?
For the 2d animated cartoons!!! and web. Of course web :D

User avatar
david63
Registered User
Posts: 17059
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: remote login php+curl

Post by david63 »

super.user wrote:
Wed Feb 15, 2017 11:04 am
Or maybe you can give me some useful links?
http://php.net/manual/en/book.curl.php
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

super.user
Registered User
Posts: 50
Joined: Tue Feb 14, 2017 1:22 pm

Re: remote login php+curl

Post by super.user »

HI. Thanks for reply.
I have red this documentation. Could you please give me more specifically answer?

Also I have found the missing part in my code.
I should set browser cookie after successful login on site side. This is the answer of question.

anyway, thanks =)
For the 2d animated cartoons!!! and web. Of course web :D

Post Reply

Return to “Extension Writers Discussion”