You need to put session code in server side
if you know the basics of session ,below code would be helpful
HttpSession session;
session= getThreadLocalRequest().getSession(*true*);
*save value in session:*
session.setAttribute("myuser", user); [ myuser-- name of the session ]
[user- any object,string]
*get value from session:*
session.getAttribute("myuser");
cheers
On Mon, Jan 17, 2011 at 10:11 AM, ernesto.reig <[email protected]> wrote:
> Hello everybody.
> I´m trying to develop my first gwt mvp application following the
> directions given in
> http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html
> I want to make a login page where the user has to log in before
> entering to the main application view. Anyway, the thing is that I
> have to implement the user sessions in the application and I would
> like to know the best (the most recommended or professional) way.
> I´ve been googling but I´m getting a bit lost since I don´t find a
> clear solution. I found
> http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ
> but I´m not sure if that´s the best way to do it.
> I´d apprecciate every help.
>
> Thank you very much.
>
> --
> 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]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
--
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.