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 > On 28 de jan de 2016, at 17:37, Rudi Angela <[email protected]> wrote: > > How can I use ER-REST in combination with a Session? I have a stateful REST > service, so I need a Session. Also I would like to use the session’s > defaultEditing Context. A brief look at ER-REST gave me the impression that > requests don’t use a Session and use a new EditingContext with every request. > Any suggestions? > > Thanks, > > Rudi > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
