Is this a job for Ramsey’s persistent session store 
framework?(ERPersistentSessionStoreage 
https://github.com/wocommunity/wonder/tree/master/Frameworks/Misc/ERPersistentSessionStorage)

I haven’t deployed this, but I’m looking for this to simplify the distribution 
of REST services (with a lightweight session) using mod_proxy instead of 
mod_webObjects


Larry Mills-Gahl
[email protected]






> On Jan 29, 2016, at 6:15 AM, Henrique Prange <[email protected]> wrote:
> 
> 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] 
>> <mailto:[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] 
>> <mailto:[email protected]>)
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com 
>> <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/elemgee%40gmail.com
> 
> This email sent to [email protected]

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

 _______________________________________________
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]

Reply via email to