parajita,
I need help determining why the session is not dropping as expected.  Here
is the code I am running on the server (the server is both 4D server, A4D
and Apache front end).

In 4D, I call it this way:

$PID:=Execute on server("APP_ADM_AIDU";89*1024;"Kill the Session!";"kill
session";$sessionID)

where $sessionID is the saved users' browser session ID.  I have verified
that the session is there by examing both the cookies in the browser, and
the A4D session list.

Here is the code that is called on the server:

C_TEXT($sessionID)
$sessionID:=$2
 C_BLOB($A4D_Response)
SET BLOB SIZE($A4D_Response;0)
 C_LONGINT($status)

ARRAY TEXT($A4D_ResponseHeaderNames;0)
ARRAY TEXT($A4D_ResponseHeaderValues;0)
 ARRAY TEXT($requestInfo;4)
$requestInfo{A4D Request Remote Addr }:="10.101.10.100"
$requestInfo{A4D Request Host Addr }:=◊A4D_HostAddr
 C_BOOLEAN($secure)
$secure:=Secured Web connection
 If ($secure)
$requestInfo{A4D Request Host Port }:="443"
$requestInfo{A4D Request Secure }:="1"
Else
$requestInfo{A4D Request Host Port }:=◊A4D_HostPort
$requestInfo{A4D Request Secure }:="0"
End if

$status:=A4D Execute text ("<% abandon session %>";
"ACTIVE4D_SESSIONID="+$sessionID; $requestInfo; $A4D_ResponseHeaderNames;
$A4D_ResponseHeaderValues; $A4D_Response)

As you can see, I pulled most of it from the A4D On Web Connection code.

When I trace the code at the server, it has the correct $sessionID, and when
the $status line executes, I get a response code of 200.

But the session does not end, and the browser continues to use it
successfully.  The timer for that session on the A4D session console does
not reset and continues it's normal countdown.

Any idea why the session does not end?  Or am I expecting behavior that
cannot be executed?

Thanks.

Michael Check

On Jan 29, 2008 3:20 PM, Michael Check <[EMAIL PROTECTED]> wrote:
>
>
> I Execute the command on the server as stored procedure, and I get status
> 200.  But the session is still there.  Viewing in the session monitor, it
> does not abandon as I think it should.
>
> Shouldn't the session be dropping?
>
> Thanks.
>
>
> On Jan 29, 2008 2:39 PM, Michael Check <[EMAIL PROTECTED]> wrote:
>
> > Thanks for this code.  I am trying to understand it (and trying to get
> it
> > to
> > work).  It is returning a result code of 403 (forbidden).
> > I am tripping  in a couple of places.
> > * A4D Execute Text needs the RequestInfo as part of it's input according
> > to
> > the docs.  I'm not sure what I am supposed to send in there.  Obviously
> a
> > text array, but is it the information from the server (that holds the
> open
> > session?)   We are trying to cancel the session from a 4D client.
> > * the query for ACTIVE4D_SESSIONID which is the cookie var for the
> > external
> > session id.  what set of data is the query string searching.
> >
> > Sorry if this seems basic.  I am looking at the docs but perhaps do not
> > understand direct execution.
> >
> > Thanks,
> >
> > Michael Check
> >
> > On Jan 23, 2008 1:43 PM, Aparajita Fishman <[EMAIL PROTECTED]
> >
> > wrote:
> >
> > > > Using the internal ID, then, is there way to force abandon a session
> > > > from
> > > > within 4D?
> > >
> > > You can if you have the external session id.
> > >
> > > ARRAY TEXT($requestInfo;0)
> > > ARRAY TEXT($headerNames;0)
> > > ARRAY TEXT($headerValues;0)
> > > C_BLOB($response)
> > > $status:=A4D Execute text("<%abandon session%>";
> "ACTIVE4D_SESSIONID="+
> > > $sessionID; $requestInfo; $headerNames; $headerValues; $response)
>
>
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to