0 Replies Latest reply on Nov 25, 2011 7:08 AM by anand kothalanka225

    Session management in flex

    anand kothalanka225

      Hello Everyone,


      I have a  class which maintains session in java.The class looks as follows..


      public class SessionCheck {


          public FlexSession session;


          public SessionCheck()


              session = FlexContext.getFlexSession();



          public  String getFlexSessionId(){

              String sessionId=new String();


              return sessionId;



      public  String  removeFlexSessionId(){





      I am calling getFlexSessionId()  whenever user logsin with username and password so it will generate sessionId.

      When he logs out I am invalidating sessionId by calling removeFlexSessionId.

      When we load the app into two tabs in same browser same flexsessionId is being generated.I want different session ids to be generated.


      Please any one of you help.