views:

32

answers:

1

I would like to store an authentication token in a session cookie. I'm using google app engine and restlets. I've done a few searches, but I have no idea even where to begin.

I would like to:

  • Store the token in a cookie
  • Read the cookie when the client makes a request through restlet

Also, is the session cookie the correct place to this type of information?

+1  A: 

restlet does not have built-in support for servlet like sessions.

You could always try using the restlet properties for getting cookies, then validate your auth token. That is assuming your authentication mechanism sets cookies. Otherwise maybe you could figure something out using restet's authentication components.

You may also be able to look into built-in sessions.

Robert Kluin