Reply to Re: [PHP] php script calling another one (on different machine), session variables

Your name:

Reply:


Posted by James on 08/01/05 23:40

Thanks Rory:

I tried using fopen() and CURL and they both worked like a charm!
No need to juggle redirects and session variables.


-James



At 9:21 PM +0200 8/1/05, Rory Browne wrote:
>On 8/1/05, Jochem Maas <jochem@iamjochem.com> wrote:
>> Rory Browne wrote:
>> > On 8/1/05, James <jtu@esidesign.com> wrote:
>>
>> ...
>>
>> >
>> > Do the two machines share a common domain name? are your machines for
>> > example boxa.commondomain.com and boxb.commondomain.com if so then you
>> > can have the cookies(which hold the session tracking number) operate
>> > at the commondomain.com level. All you have to do then is configure
>> > one machine to get session files from the other.
>> >
>> > Otherwise you can use session.use_trans_sid and add the SID to the url
>> > when you header("Location")
>> >
>> > In windows you could do this by setting up a share containing the
>> > session files, and modding your php.ini file to reflect that the
>> > session info is stored in this file.
>> >
>> > If you don't have admin access to your boxes, then you could write a
>> > session handler on one of the systems to dl the necessary sesssion
>> > info on demand. For more info see
>>
>> purely out of interest, see what? :-)
>
>Sorry - but I thought someone of your experience Jochem would know :)
>
>See: http://www.php.net/manual/en/function.session-set-save-handler.php
>
>
>>
>> >
>> > Having that said, it seems to be a fairly common requirement - so
>> > there may be a cleaner solution to the one I have outlined here. I've
>> > just never needed it - so therefore I've never come across it.
>> >
>> >
>> >>
>> >>--
>> >>-James
>> >>
>> >>--
>> >>PHP General Mailing List (http://www.php.net/)
>> >>To unsubscribe, visit: http://www.php.net/unsub.php
>> >>
>> >>
>> >
>> >
>>
>>


--
-James

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация