Persistent client session

View: New views
2 Messages — Rating Filter:   Alert me  

Persistent client session

by vitaly-18 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
is there any example of client(python, not Flex based) that using  
persistence session with server?

client = RemotingService('http://localhost:8000/')
service = client.getService('myserver')
service.login('abc', '123')
service.login('abc', '123')
...


First service.login call returns expected response,
but the second call to the service.login fails: session timeout from  
the server side.

Appreciate any help.

_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users

Re: Persistent client session

by Nick Joyce :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Unfortunately the PyAMF client does not support session cookies (or  
indeed cookies of any kind).

There is a ticket for this [1] but I have not had any time to work on  
it (getting 0.5 out the door right now).

Patches welcome! :)

Nick

[1] - http://pyamf.org/ticket/493

On 16 Jul 2009, at 20:13, vitaly@... wrote:

> Hi,
> is there any example of client(python, not Flex based) that using  
> persistence session with server?
>
> client = RemotingService('http://localhost:8000/')
> service = client.getService('myserver')
> service.login('abc', '123')
> service.login('abc', '123')
> ...
>
>
> First service.login call returns expected response,
> but the second call to the service.login fails: session timeout from  
> the server side.
>
> Appreciate any help.
>
> _______________________________________________
> PyAMF users mailing list - users@...
> http://lists.pyamf.org/mailman/listinfo/users

_______________________________________________
PyAMF users mailing list - users@...
http://lists.pyamf.org/mailman/listinfo/users