Aparajita,
I've confirmed that this is in theory possible, but have a problem.
For example, I can read a session value within 4D with the code shown
below.
C_TEXT($0)
ARRAY TEXT($requestInfo;4)
$requestInfo{1}:="127.0.0.1"
$requestInfo{2}:="127.0.0.1"
$requestInfo{3}:="8080"
$requestInfo{4}:="0"
ARRAY TEXT($headerNames;0)
ARRAY TEXT($headerValues;0)
C_TEXT($queryString)
C_BLOB($response)
C_TEXT($responseText)
$queryString:="sid=49BE2F5E7327CD62"
$result:=A4D Execute text ("<%=
session{\"is_valid_user\"}%>";$queryString;$requestInfo;$headerNames;$heade
rValues;$response)
$responseText:=BLOB to text($response;Mac text without length )
ALERT($responseText)
$0:=$responseText
----
The problem is that to make that code work I had to hard code a known
session value to build the query string.
Is there any way for 4D to derive the session id? I tried to read the
"ACTIVE4D_SESSIONID² cookie using "A4D Execute text" but never had any
luck.
Thanks,
Brad Perkins
On 6/4/12 6:45 PM, "Aparajita Fishman" <[email protected]>
wrote:
>> Is is possible to go the the other way and have a 4D method update data
>>for a particular session?
>>
>> Could A4D Execute text (or A4D Execute file) be used to accomplish
>>this? I have to admit that I've never used that command.
>
>You can use A4D Execute text, passing the session id (encrypted id, not
>internal id) as a query parameter ("sid" by default, or whatever you have
>configured in Active4D.ini).
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/