Announcement

Collapse
No announcement yet.

Questions regarding the communication between open-xchange server and client

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Questions regarding the communication between open-xchange server and client

    Hi,

    I am a beginner in python programming and I am developing a command line application which will communicate to the open exchange mail server in my firm and get data such as contacts, appointments, etc.,

    I used a simple REST client from Google chrome to check how the communication between my client pc and server system is working, I found that my client pc uses a header[Cookie : JSESSIONID=111c4c71fa4a46889056d67f6373f16e.APP1; open-xchange-secret-nglMVtP1wjw2pZFWK7R4CA=f4badb59cf2b4e09b448284af05 4a864; open-xchange-public-session=9b055007fd704114b31d3eeeb92344a7] which it received from server during the authentication of login process to keep my session alive and to do the other operations like logout, get data, etc.,

    Now my question is that when I login I get a session id and random id as response data [{"session":"6cb643b7b26b48b5bca489bb5615f1ac","loc ale":"en_US","random":"f45d21e4266347b88ec1d8dfe93 90ec4","user_id":824,"user":"ravisn"}] so can I use this information to keep my session alive and do other tasks like logout, get data, etc.

    Also what is the uses of the header [Cookie : JSESSIONID=111c4c71fa4a46889056d67f6373f16e.APP1; open-xchange-secret-nglMVtP1wjw2pZFWK7R4CA=f4badb59cf2b4e09b448284af05 4a864; open-xchange-public-session=9b055007fd704114b31d3eeeb92344a7]

    and what is the use of session and random ids [{"session":"6cb643b7b26b48b5bca489bb5615f1ac","loc ale":"en_US","random":"f45d21e4266347b88ec1d8dfe93 90ec4","user_id":824,"user":"ravisn"}]

    Thank You & Regards,
    Sanjay

  • #2
    Originally posted by sanjayanammu View Post
    I used a simple REST client from Google chrome to check how the communication between my client pc and server system is working,
    You don't need to reverse-engineer the communication. There protocol between client and server is documented in the wiki: HTTP API.

    Now my question is that when I login I get a session id and random id as response data [{"session":"6cb643b7b26b48b5bca489bb5615f1ac","loc ale":"en_US","random":"f45d21e4266347b88ec1d8dfe93 90ec4","user_id":824,"user":"ravisn"}] so can I use this information to keep my session alive and do other tasks like logout, get data, etc.
    Yes.

    Also what is the uses of the header [Cookie : JSESSIONID=111c4c71fa4a46889056d67f6373f16e.APP1; open-xchange-secret-nglMVtP1wjw2pZFWK7R4CA=f4badb59cf2b4e09b448284af05 4a864; open-xchange-public-session=9b055007fd704114b31d3eeeb92344a7]
    The JSESSIONID cookie is used for sticky sessions: once a node in a cluster has loaded a session into memory, all further requests for that session get routed to the same node.
    The other cookies are used for authentication. See OX Session Lifecycle for details.

    and what is the use of session and random ids [{"session":"6cb643b7b26b48b5bca489bb5615f1ac","loc ale":"en_US","random":"f45d21e4266347b88ec1d8dfe93 90ec4","user_id":824,"user":"ravisn"}]
    The session ID is used to authenticat all further requests and is described in OX Session Lifecycle.
    The random ID is deprecated; don't use it.

    Comment


    • #3
      thank you so much for your reply i appreciate the help

      Comment

      Working...
      X