Hybrid View

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    69
    Vote Rating
    0
    mboreback is on a distinguished road

      0  

    Default How can session timeoute be handled?

    How can session timeoute be handled?


    Hi,

    I am building a small web app with a login pannel and som application components.
    Is there a good way to handle session timeouts and move the users back to the login page.

    I could do this in the faulre event for each form and store, but would like to have a genel function for this in a controler or on the application level.

    Any hints for how to do this?

  2. #2
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,181
    Vote Rating
    77
    ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough ssamayoa is a jewel in the rough

      0  

    Default


    Session, as you may already do, is controller at server side. So my ExtJS code checks the validity of the session only when applications communicates with server code, I mean, proxies and ajax calls. This is the exception event of all my proxies:

    Code:
    DataUtils.proxyException(server, response, operation);
    Such utility method in the DataUtils singleton class shows the appropiate error to the user then, depending on the error message, redirects to login page which is JSF.

    Regards.
    UI: Sencha Architect 3.x / ExtJS 4 MVC
    Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
    Application Server: Glassfish 3.1.x
    Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5

    If you like my answer please vote!

  3. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    69
    Vote Rating
    0
    mboreback is on a distinguished road

      0  

    Default


    Intresting, this is something that could solve my problem.
    I tryed to find the documentation for this in sencha touch and extjs 4 api documentation but could not find anything.
    I also looked in Sencha Designer but could not find a way to define the event there.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar