Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Doubt on RTMPFlexSession

Avatar

Level 2

Hi All,
       In my application a separate DataDestination gets created when user logs in.

I want(struggling) to destroy the destination associated with the particular user.

For this I have created FlexSesioListner and as soon as DataDestination  gets created I immediately put it in FlexSession.

FlexContext.getFlexSession().setAttribute("destID" desitID);

SessionDestroy() method get called when user disconnect from app due to any reason

The issue is SessionDestroy() ,flexsession.get( "destID") retuning null ???

while debugigng i found that FlexContext.getFlexSession() returns HttpFlexSession ie  destID is getting stored in  HttpFlexSession 
where as in  SessionDestroy(FLexSession session) session is of type
RTMPFlexSession hence I am getting null here.

my question is how to put data in RTMPFlexSession so that I can be made available in sesssionDestroy() method when RTMP client disconnect.

Just want to destroy the DataDestination when user gets disconnected from RTMP channel based Flex App


Regards,
Dharmendra

1 Reply

Avatar

Level 2

Hi All,

      Pelase Please , have a look in to it ...I still could not sovle this issue.

Thanks,

Dharmendra