Hi All,

What should be the best authentication ans session management in GWT apps?
Currently I am having this idea:

   - Have a method checkSession() which will check for a valid authenticated
   session and throws an Exception if no valid session is there.
   - Call this method in the beginning of every ServiceImpl method.
   - In the onFailure of the async call backs catch this Exception and
   display the login page.

But this method has the following weak points:

   - Some developer may forget to call the checkSession method.
   - There is code duplication in the onFailure implementation (Every
   onFailure shud handle the authentication exception)

So any of you have any better ideas?

Regards,
Litty Preeth

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to