[PHP] borrowing cookies

2004-06-18 Thread Sejmitar
Hello...

Instead posting a code I'll post short description of situation; now I'm
totally stuck with no ideas, so there's no way of talking aoute code ... If
you want to skip it, (that cursed) question is at the bottom of the text.

Problem :

There's a Site (called later a ... site :) ) which is frequently visited by
me and some of my friends. Site requires login (and it siply doesn't allows
to pass beyond login screen and about section), but after first login
recognizes all further calls (aah, freshly baked cookies). Site gives you
variable information that depend on your login (this means I'm not
neccesarily seeing what other people will see), starting from Welcome,
XYZ.

I had wanted to simplyfy life and created on my webpage PHP-based Portal
to acces site. Portal groups some frequently used options / links from the
Site in one place and gives some more (local info, common interest links
etc). Portal has free access - no login required.

Of course, when I click link on Portal to [some place in the] Site, browser
loads Site, gives apprioritate cookies, Site accepts it and recognizes me as
registered user (no login screen). The same for my friends or anyone else
logged to Site. That's no problem (those links are simple links, after all).

Then I had tried to even more simplify life and get some of information
published on Site to show it directly in Portal - and there starts the
problem. Apprioritate script loads Site to variable, shaves and process this
variable and post results on Portal. I theory, unfortunaltely ...

To access those information, Site requires authorisation, so Portal's script
has to authorize. If script didn't make it, Site simply stops at login
screen (which is of no interest to me). I can use my own log/pass and write
it hard to the script, but then anyone who open Portal with borrowed'
Site info will see the same info as I do (including Welcome, Sejmitar). I
do not want to require authorizations in Portal, because this isn't make any
sense - if you're required to login on Portal, it's simplier to login on
Site.

I know that each Site's authorized user has an authorization cookie(s) which
is recognized by the Site. Question : Is there a method to 'borrow' this
cookie (cookie info) with script on my Portal, and 'show' it to Site, or
make Portal to point where Site can look for it's own cookies for
authorization ?

I'll be very thankful for any ideas ...

~) Sejmitar

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] borrowing cookies

2004-06-18 Thread Curt Zirzow
* Thus wrote Sejmitar:
 
 Then I had tried to even more simplify life and get some of information
 published on Site to show it directly in Portal - and there starts the
 problem. Apprioritate script loads Site to variable, shaves and process this
 variable and post results on Portal. I theory, unfortunaltely ...

With or without permissions to do such a thing? If the later then
hit delete now, otherwise continue on..

 
 I'll be very thankful for any ideas ...

http://php.net/curl


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php