Results 1 to 3 of 3

Thread: Session Time Out

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    31
    Vote Rating
    0
      0  

    Default 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 User sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,335
    Answers
    124
    Vote Rating
    91
      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
    9,390
    Answers
    716
    Vote Rating
    498
      0  

    Default

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

    Scott.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •