Login session is not being shared preventing data request from Flash

Permalink 1 user found helpful
This is either something easy and I've overlooked it or something over my head. Its also a little complicated so please let me know if I can clarify.

I have a FLEX app that is making a request of a C5 single page which I have setup as an AMF endpoint for fast data transport to the FLEX environment. The endpoint works great, I'm serving content from C5 to Flex successfully.

User needs to be logged into C5 in order for the AMF Request to get through, otherwise the response is to login. SO to be clear:

FLEX -> (AMF) -> Concrete5 :: If logged in then data for the request is sent back, if not logged in then basically nothing happens.

My problem is that from some comps, for some users this works great - from others it appears that the Concrete5 session is not being shared, even though the user is logged in and has permission to access (tested with the super user account). Can anyone shed any light on this for me - it works for some, but not others - can't figure it out.

In the meantime I am going to set site access back to public but gatekeep with permissions on the pages / sections of site, leaving the services page open to public.

Thanks for any help, leads you can give me.

Gerry

snowbound
 
Remo replied on at Permalink Reply
Remo
I used to do quite a bit of work with Flex but that's a few years in the past by now.

The only thing that I can remember is a problem that happened with overlapping requests. I sometimes had to call session_write_close to "commit" the session data and make it visible to other requests.

I don't think that causes your problem but you never know..
snowbound replied on at Permalink Reply
snowbound
Thanks Remo,
I'll take a look into that and see whether that does the trick.
snowbound replied on at Permalink Reply
snowbound
I tried session_write_close() before triggering the getContents, didn't make a difference. Thanks for the suggestion and your responses.
snowbound replied on at Permalink Reply
snowbound
A little more info.

Advanced permissions are enabled. Site access is restricted to Registered user. If I switch it to Guest access on the problem pages it fixes the issue.

I switched gears to working on a page to pdf feature and when I do file_get_contents or FileHelper->getContents on an url which I have full permissions to I am receiving the login page as the result... but not always - for some pages I receive the content as expected.

It seems related to me - but it might be wishful thinking. Thanks.
Remo replied on at Permalink Reply
Remo
I doubt that, advanced permissions changes lots of queries made on the database but as far as I've seen it, it doesn't change anything related to sessions.

But that's all just theory...
snowbound replied on at Permalink Reply
snowbound
OK - thanks.
Just figured I know AdvPrms changes many things and can add issues. It really just confirms I have a session sharing issue some of the time.

The strange thing in this case is I'm doing getContents from within the controller of the page, just adding an url flag to trigger pdf content changes. Delivers the Login page.

Same function, different page and controller and it delivers the formatted PDF of the content.

Strange -- time to do some looking into the session and see what I can figure out.