apache / apache/royale-asjs

RemoteObject PHPSESSID issue SDK0.9.7##1086

Open
#779 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
ActionScript
Stars
380
Forks
120
PR merge metrics
No merged PRs in 30d

Description

Hi,

It seem there is a bug with mx:RemoteObject and PHPSESSID.
When using it for first time, it should memorise the PHPSESSID sended by remote host. Then using it another time, it should send this PHPSESSID in the request header.

I took exemple in
`examples\mxroyale\RemoteObjectAMFTest`

I modify it to call my test login service, and clic on sendLogin button.
Here is network trace :

On first packet, then Request has no PHPSESSID because it's first use

![image](https://user-images.githubusercontent.com/6851433/77336698-31368f00-6d28-11ea-8e9a-8e9e3c2991b3.png)

On second packet (and others if clic again on sendLogin button) there is no PHPSESSID in Request header.
So the server send each time another new PHPSESSID thinking it's a new client

![image](https://user-images.githubusercontent.com/6851433/77336931-82df1980-6d28-11ea-9f8e-54aaf420ea33.png)

Now here is same service with Flex sdk4.6.0

![image](https://user-images.githubusercontent.com/6851433/77337192-da7d8500-6d28-11ea-9045-3ea822cf4a57.png)

Here is the code used :

```
















```

Remote server is using AMFPHP (I can give remote URL to test if necessary in private)

Regards

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.