Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Problem Using cURL sessions and cookies.
Old 06-25-2008, 08:12 PM Problem Using cURL sessions and cookies.
Novice Talker

Posts: 6
Name: Marc
Location: England
Trades: 0
I have a problem with an application i'm installing on my system. It's a phpbb3 forum, i have configured it to work as a stand alone system, however when i try to include it as an application using curl the session never saves and doesn't keep the user logged in. I pass the cookies using CURLOPT_COOKIE, and the cookies are read correctly inside the page, but it still doesn't save the session. I'm not very experienced with curl, any ideas as to what could be causeing the problem?

Thanks for any help you can offer
Marc
Marc.Qualie is offline
Reply With Quote
View Public Profile Visit Marc.Qualie's homepage!
 
 
Register now for full access!
Old 06-26-2008, 01:40 PM Re: Problem Using cURL sessions and cookies.
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
It's most likely the cookie's are not being passed correctly. You also need to use CURLOPT_COOKIESESSION to send session cookies
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 06-27-2008, 03:10 PM Re: Problem Using cURL sessions and cookies.
Junior Talker

Posts: 4
Trades: 0
And if you want you can use Snoopy HTTP class that you can download from phpclassess.org.
xbit is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Problem Using cURL sessions and cookies.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11593 seconds with 12 queries