1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    31
    Vote Rating
    0
    waqasaslammmeo is on a distinguished road

      0  

    Default Unanswered: Session Time Out

    Unanswered: Session Time Out


    hello !
    i have two forms , one is my login form and second is my main form. after login my main form will open , i want that if my session is expired then my login js will open , how can i do this ,please help me in this.
    or if this is not possible then please can any one tell me how i can just check that is my session is expired or not ? i mean want to check the session state in extjs .

    Regards

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      1  

    Default


    Hi!

    in case of detecting session timeout, you may bind a requestexception listener to Ext.Ajax.
    But your server must responds with HTTP status 401 when the session times out.

    then you may use following:-
    Code:
    Ext.Ajax.on('requestexception', function(con, resp, op, e){
      if(response.status == 401){
        // redirect to login page
      }
    });
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

  3. #3
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,884
    Answers
    653
    Vote Rating
    440
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    You may also be interested in this client version as well:
    http://www.sencha.com/forum/showthread.php?155346

    Scott.