Re: Pageable Recordset example

Will Prater <[email protected]>
Newsgroups gmane.comp.java.openamf.user
Message-ID <[email protected]>
On Jul 6, 2005, at 9:09 PM, Troy Gardner wrote:

>> Yes, we tracked that down.  So currently there is no solution for
>> OpenAMF?
>>
>
> Hmm. Haven't noticed any issues, but i haven't looked into it a  
> great deal.
>
>
>>  I see there is a solution in AMFPHP for this exact
>> problem.
>>
>
> Hmm, What URL did you see this?

If you download the latest 1.0 beta you can find this in the  
AuthenticationFilter.php which is called after  
DeserializationFilter.php.  Here is a quick block of code:

========================================
        $session_id = SessionManager::startSession();
        if(!$bodyCopy->isDescribeService() && !strstr($_SERVER 
['QUERY_STRING'], $session_id))
        {
            //BUG FIX:: Try to guess if server is secure
            if((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ==  
'on' ) || $_SERVER['SERVER_PORT']==443)
            {
                $start = "https://";
            }
            else
            {
                $start = "http://";
            }
                       $uri = $start . $_SERVER['HTTP_HOST'] .  
$_SERVER['PHP_SELF'] . "?" . ini_get('session.name') . "=" .  
$session_id;
            $outHeader = new AMFHeader("ReplaceGatewayUrl", false,  
$uri);
            $localRef->addOutgoingHeader($outHeader);
        }

And AMFHeader constructor is:

    function AMFHeader($name = "", $required = false, $value = null) {
        $this->_name = $name;
        $this->_required = $required;
        $this->_value = $value;
    }
================================================


>
>> I am not familiar with Java's implementation.  Are you
>> saying that we could set up Tomcat to intercept that SESSION attempt
>> and pass the gateway around with session ID attached to it?
>>
>
> The correct term is URL rewriting. Supposedly cookies="false" in  
> the web.xml
> does this. e.g.
>
> <Context cookies="false" docBase="cocoon" path="/"  
> reloadable="false"/>

Great, perhaps we should give this a shot first.

>
> Troy Gardner -"How you live your seconds, is how you live your  
> days, is how you live your life..."
>
> http://www.troygardner.com -my world
> http://www.troyworks.com - building Rich Internet Applications
> http://www.intrio.com -helping bridge the gap between the humans  
> and machines. Home of the Flickey™
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Openamf-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openamf-user
>



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.