[Freeipa-devel] [PATCH 60] Implement session support in server, Manage sessions in WSGI

John Dennis jdennis at redhat.com
Thu Jan 12 23:20:51 UTC 2012


On 01/12/2012 05:37 PM, Rob Crittenden wrote:
> John Dennis wrote:
>> This patch adds the ipalib/session.py file which implements a cookie
>> based session cache using memcached.
>>
>> It also invokes the session cookie support when a HTTP request is
>> received and stores the session data in the per-thread context object.
>>
>
> ACK.
>
> It might be handy to have a way to get the cache stats and potentially
> drop a given entry. Something to think about for the future.

It's trival to get the cache stats on the server:

import ipalib.session
print session_mgr.get_server_statistics()

Or do you mean get the stats as an ipa command?

The next patch which will follow in a little bit does include a method 
to delete a cache entry, that's used when a ticket expires.


-- 
John Dennis <jdennis at redhat.com>

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/




More information about the Freeipa-devel mailing list