1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    2
    Vote Rating
    0
    ayesh is on a distinguished road

      0  

    Question Auto Reload Client Page

    Auto Reload Client Page


    Hello

    I am new on gxt and gwt , I have the following:

    If a user is currently logged in and the session is still open, when he come to login again from another place I want to make a force logout operation for the previous session and display the login screen again (sure for the old place, to close the web application).

    Thanks

  2. #2
    Sencha User
    Join Date
    Apr 2011
    Posts
    2
    Vote Rating
    0
    rp111 is on a distinguished road

      0  

    Default Dynamic Tree

    Dynamic Tree


    how can i reload just single node but not whole tree....plz reply...

  3. #3
    Sencha User
    Join Date
    Apr 2011
    Posts
    2
    Vote Rating
    0
    ayesh is on a distinguished road

      0  

    Default I am new :((

    I am new :((


    in fact I am new with gxt and gwt ... i do not know how to do this, but if I know it I will replay to you, insha'Allah

    Regards

    now who will replay to my post

  4. #4
    Sencha User
    Join Date
    Nov 2007
    Posts
    20
    Vote Rating
    0
    gaspo100 is on a distinguished road

      0  

    Default


    One way to do it is like this:
    • On the server create a table in your database that will store current sessions (user and session ID)
    • When user successfully logs in store session ID and user name in the current sessions table.Then send back session ID to the client application.
    • Client application should include user name/session ID with every RPC call to the server.
    • Server code should validate user name/session ID against current session table. If session check does not match an exception will be thrown.

    When user logs in from another computer check if there is already an active session for this user in the current sessions table. If there is then ask user if he wants to continue with the new session. If user says yes, delete user's existing record from current sessions table and then create a new session record.

    When user tries to work on the computer with old session he will get an error on the next call to the server because old session record has been deleted. Your client application can then display the login screen.

    This way only one active session for the user can exists.

  5. #5
    Sencha User
    Join Date
    Jan 2010
    Posts
    43
    Vote Rating
    0
    blackbox23 is on a distinguished road

      0  

    Default


    Hi Ayesh,

    Have you already found a solution for this?

    I also need to have this implemented in my web app.


    Thanks!

  6. #6
    Sencha User
    Join Date
    May 2011
    Posts
    16
    Vote Rating
    0
    Saeter is on a distinguished road

      0  

    Default


    gaspo100's way would be the cleanest way of handling this issue. If you dont have access to the database to create a table, you could use a singleton instance of a new class as well, holding a hashtable of user to session.

    Each time a service is called, it should check the user and the session, and if it doesn't match what's in the hashtable, then you can deal with that how you would like.

  7. #7
    Sencha User
    Join Date
    Jan 2010
    Posts
    43
    Vote Rating
    0
    blackbox23 is on a distinguished road

      0  

    Default


    Thanks Saeter!

    I've already implemented mine.

    For those who are looking for an alternative:

    In my app I don't logout the previous tab but I automatically logged in using the credentials from the most recent session (remember me). I also store the recent session info in my browser's cookies
    http://tims-tech-blog.blogspot.com/

    I pass the user credential info every RPC using a custom RPCRequestBuilder:
    http://www.mail-archive.com/google-w.../msg55871.html

    Thanks a lot!

  8. #8
    Sencha User
    Join Date
    Sep 2011
    Posts
    1
    Vote Rating
    0
    gabriella28 is on a distinguished road

      0  

    Default


    I just want to say thank you for the information. It is very valuable for me..newbie here and encountering generic levitra the same situation.
    Thanks and keep up the good work..

Similar Threads

  1. How To Auto Reload Tab Panel Content?
    By ontangian in forum Ext 2.x: Help & Discussion
    Replies: 14
    Last Post: Yesterday, 9:22 PM
  2. auto reload store timing issue
    By raj_plays in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 28 Apr 2011, 10:32 AM
  3. using EXT with client side page controller
    By richhoude in forum Community Discussion
    Replies: 3
    Last Post: 22 Feb 2010, 7:55 AM
  4. TreePanel - Prevent auto expand after reload
    By keztrel in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 11 Nov 2008, 6:02 AM

Thread Participants: 5

Tags for this Thread

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