Session management in the gwt

前端 未结 3 2096
无人共我
无人共我 2021-01-28 23:39

I am working on an GWT-ext application. In this application I managed client side session. For this I write below code:

To manage the session: import com.google.gwt.user

3条回答
  •  梦谈多话
    2021-01-29 00:39

    In the Timer, increment a variable for each second. And when user click on any button after 5 minutes or on 6th minute than check the counter variable and if the variable is greater than 6 than you can use Window.Location.reload(); to logout or reload().

提交回复
热议问题