Mod_python, jsonrpc and sessions

Discussion in 'Python' started by p3dda.adam@googlemail.com, Jan 14, 2009.

  1. Guest

    Hi,

    I've got a python web-application being served by apache via
    mod_python, in which the users sessions are tracked via the mod_python
    Session module.
    Some of websites generated contain a java-script function which starts
    a jsonrpc call to the same server and gets further data or stores
    something to a database (AJAX). The server-sided jsonrpc functions are
    written in python as ServiceMethods.

    As I need to identify the user issuing the rpc call, I'm wondering if
    there is any possibility to access the session created by the
    previosly called mod_python Handler-method. In mod_python it is
    accessed using the mod_python request object, but in the rpc
    servicemethod I don't have such an object. So how can I track the rpc
    caller?

    Any ideas and hints appreciated.
    Peter
     
    , Jan 14, 2009
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ken Cox [Microsoft MVP]

    Re: Relationship between IIS Sessions and ASP.NET Sessions?

    Ken Cox [Microsoft MVP], Aug 8, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    5,609
    Luther Miller
    Aug 8, 2003
  2. Markus Schaber

    Apache mod_python and Sessions

    Markus Schaber, Jul 4, 2003, in forum: Python
    Replies:
    7
    Views:
    1,067
    Irmen de Jong
    Jul 8, 2003
  3. vk02720

    question on Ajax/jsonrpc

    vk02720, Sep 4, 2006, in forum: Java
    Replies:
    1
    Views:
    563
    John Bailo
    Sep 26, 2006
  4. blbmdsmith
    Replies:
    1
    Views:
    825
    Graham Dumpleton
    Dec 14, 2006
  5. Replies:
    1
    Views:
    534
  6. Luke Kenneth Casson Leighton

    [ANN] git JSONRPC web service and matching pyjamas front-end

    Luke Kenneth Casson Leighton, Jun 29, 2010, in forum: Python
    Replies:
    3
    Views:
    587
  7. scottymo
    Replies:
    3
    Views:
    1,031
    Dominick Baier
    Sep 30, 2006
  8. vk02720

    question on Ajax/jsonrpc

    vk02720, Sep 4, 2006, in forum: Javascript
    Replies:
    1
    Views:
    178
    John Bailo
    Sep 26, 2006
Loading...