Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Passing Browser session to apache for use in curl function
Hey all,

am wanting to know how to pass the browser session to apache so that apache 
can use it in a curl
function to automatically log in to another site and then pass the session b
ack to the browser so
that the links from the site_2 will work without having to log in again. ie:

below the (S) represents the browsers session:

browser(S) ->site_1->apache->page->frameset->frame1[local menu].frame2[site_
2->login_page]
^

browser->site_1->apache(S) ->page->frameset->frame1[local menu].frame2[site_
2->login_page]
^

browser(S)->site_1->apache->page->frameset->frame1[local menu].frame2[site_2
->page_after_login]
^

I have seen a discussion regarding this and how to do it but I can no longer
 find it. any help would
be greatly appreciated.

thanks,
chuck

Report this thread to moderator Post Follow-up to this message
Old Post
Charles Williams
04-03-08 01:12 PM


Re: Passing Browser session to apache for use in curl function
Hi,

Charles Williams <nospam-chuck@planet-ic.de> wrote:

> am wanting to know how to pass the browser session to apache so that
> apache can use it in a curl function to automatically log in to
> another site and then pass the session back to the browser so that
> the links from the site_2 will work without having to log in again.

First note that there's not really a =BBsession=AB that could be passed,
it's more an abstract mechanism. Your system would only work if the
session mechanism depends on portable (between client environments)
session tokens.

It's not really much of a matter, but there's no general solution since
there's no generic session but rather different implementations of a
session mechanism. It also can only work if you can use URL-based
session tokens for site_2, since you cannot send cookies to the client
which are valid for other servers.

So the way would be:

- log in on site_2, not using cookies
- extract session token from URL on site_2
- construct link to some page on site_2 using the session token

----
For examples, look at those stupid, wrong spelled =BBphishing=AB pages that
are en vogue by Spammers. I think they use a similar mechanism,
redirecting you to your local bank from their faked login portal ;-)
(SCNR)

-hwh

Report this thread to moderator Post Follow-up to this message
Old Post
Hans-Werner Hilse
04-03-08 01:12 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 11:16 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.