Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6076751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:38:37+00:00 2026-05-23T10:38:37+00:00

I am using GAE User Service to Authrnicate my GWT Application. Depending on whether

  • 0

I am using GAE User Service to Authrnicate my GWT Application.
Depending on whether the User is logged in the User is presented with LoginPage/Dashboard.

The GWT Application calls a Auth Servlet (Window.Location.assign(“/googleauth”); causing application to unload which then transfers control to Google Authentication Page, after authentication we are redirected to CallBack servlet.

I can check whether user is loggedin successfully in Callback Servlet. However if I simply redirect back to my application the session login is lost.

The Application loads from scratch.

If I set up a cookie–>

HttpSession session =
request.getSession();
String sessionid = session.getId(); //Get sessionID from
server’s response to your login
request
Cookie cookie=new Cookie(“sid”,sessionid);
response.addCookie(cookie);
response.sendRedirect(AppURL.getApplicationBaseURL());

In my client code check –>

String sessionID =
Cookies.getCookie(“sid”);
if(sessionID!=null) { //show
dashboard }

Is the way I am using secure? How long are the cookies valid for?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:38:37+00:00Added an answer on May 23, 2026 at 10:38 am

    You said:

    I simply redirect back to my application the session login is lost.
    

    This should not happen. Once you login the session should be there until you logout or session timeouts (you can set this in GAE settings).

    You can simply make a GWT-RPC call to server and check if user is logged in: UserServiceFactory.getUserService().isUserLoggedIn().

    Note: if you are looking for session cookies, AppEngine uses different cookie names in production and development servers. It uses ACSID cookie in production and dev_appserver_login.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using GWT with GAE. When the user enters any of the following urls,
I am using GAE Java for a multi-user application. There are multiple users with
Does anyone have experience writing a Facebook application using GWT with GAE? I'm new
I have a GAE/GWT server web application using OAuth 2.0 . Locally (GWT development
I'm currently using a Gwt CellTable, bound to my GAE/Objectify backend via RPC calls.
I want to develop a GAE application using python, but I fear that Google
I am using the tweepy-gae library to do authenticated (oauth) calls to the twitter
I'm interested in porting an existing application which was written using Spring/Struts2/Hibernate to GAE.
I'm using the GAE users service for login/logout mechanism, with create_login_url, etc, and it
To learn GWT and Google AppEngine (GAE) I'm trying to create a simple application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.