By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,369 Members | 1,131 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,369 IT Pros & Developers. It's quick & easy.

Transfer Session Data to another page with Curl Functions

LeoTD
P: 14
Dear all,
I'm a newbiew in Curl functions.
I want to transfer Session data from this page to another in difference server. It means: page1 have a link to page 2. When i click to link in page 1, data is saved in Session, Session is transfered to page2, and displayed in page2.

Can I use Curl Function to do that ?, If it possible please show me a solution?
What mean of the curl_init("url")?
Do the curl_init("http://example.com") function have redirect to example.com page as header("Location:http://example.com") function or not ?

Please help me!!
Thanks.
Oct 30 '07 #1
Share this Question
Share on Google+
1 Reply


Atli
Expert 5K+
P: 5,058
Hi Leo.

cUrl does not work like the header() function. The cUrl functions send a request to a HTTP server and stores the response, without ever leaving the page it is on.

As to the transference of your session to another server. That sounds a little dangerous to me. Sessions are meant to stay on the server it is created on. If you start sending session data between pages your run the risk of it being intercepted and read by a 3'rd party. It would also be possible to fake a transmission, essentially fooling the server into thinking it is a legit session being sent by your servers, giving the hacker access to whatever it is you have on the second server.
Nov 11 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.