How to check login info while any RPC calls performing?

2 views
Skip to first unread message

freemonhuul

unread,
Apr 28, 2008, 12:33:02 AM4/28/08
to Google Web Toolkit
Hi gyus!

I have RPC methods and then What I want is that I can check login info
if not logged in, redirect to a login servlet without performing
logical flow of a calling RPC method.

I can write a method to check login info and call it in all RPC
methods
I think It is not the best idea. if I have too many rpc methods, It is
far more lazier work.

When receiving any RPC calling request, can my server-side call my
login checker method and run the calling RPC method?

In another word, can I change RPC direction to login servlet any time
if not logged in?

expecting replyment

Enjoy! :-)

Kamal Chandana Mettananda

unread,
Apr 28, 2008, 12:40:08 AM4/28/08
to Google-We...@googlegroups.com
Seems you better do the checking on your servlet level and call login by the servlet only when needed.

But if you do a redirect, that will cause another RPC call.

So how about having ServletRequestListener and do the login checking at requestInitialized() method.

--
Kamal Mettananda
http://lkamal.blogspot.com
Reply all
Reply to author
Forward
0 new messages