• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to set up a stateful REST service
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to set up a stateful REST service


  • Subject: Re: How to set up a stateful REST service
  • From: Henrique Prange <email@hidden>
  • Date: Fri, 29 Jan 2016 09:15:48 -0200

Hi Rudi,

Having state on the server isn’t recommended for REST services. If you need state and want to keep your service scalable, try storing the session information on the client.

That said, if you really want to store the session on the server, take a look at the sessionID method of the ERXSession class and the restoreSessionWithID method of the ERXApplication class. You’ll have to create a session manually and find a way to pass the sessionID between requests.

Cheers,

Henrique
Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >How to set up a stateful REST service (From: Rudi Angela <email@hidden>)

  • Prev by Date: Session Timeouts
  • Next by Date: Re: Session Timeouts
  • Previous by thread: Re: How to set up a stateful REST service
  • Next by thread: Session Timeouts
  • Index(es):
    • Date
    • Thread