Forum Discussion

b_poplin's avatar
b_poplin
Expert
11 years ago

What API calls keep sessions active

We run a custom mobile site where we allow members to upload videos and photos.  Videos in particular are being uploaded to an S3 server, encoded, etc... before allowing the post to submit.

 

Very large videos take a lot of time, and there is potential for the Lithium session to timeout before being able to submit.  I am hoping to make a simple API call like ping during the video upload that would keep the session active so that we do lose the member activity and degregate their experience.

 

Does every call to the API using the members session key count as activity?

 

Thanks!

  • The API session is different from the web ui session.  A call to the API will not keep the web session active in any way.  Are you trying to keep the community web ui session alive, or the REST API session key active?  

     

    As far as the web ui session is concerned, we do have "keep alive" logic in the message post page for keeping web sessions active while you are on that page.  I believe the keep-alive logic makes a request to the following URL to keep the session alive: t5/status/blankpage?keepalive.  I don't think we officially support this endpoint however (and reserve the right to remove it), so you would probably be better off creating a custom page and hitting that periodically to keep the session alive.

     

    -Doug

2 Replies

  • DougS's avatar
    DougS
    Khoros Oracle
    11 years ago

    The API session is different from the web ui session.  A call to the API will not keep the web session active in any way.  Are you trying to keep the community web ui session alive, or the REST API session key active?  

     

    As far as the web ui session is concerned, we do have "keep alive" logic in the message post page for keeping web sessions active while you are on that page.  I believe the keep-alive logic makes a request to the following URL to keep the session alive: t5/status/blankpage?keepalive.  I don't think we officially support this endpoint however (and reserve the right to remove it), so you would probably be better off creating a custom page and hitting that periodically to keep the session alive.

     

    -Doug

  • b_poplin's avatar
    b_poplin
    Expert
    11 years ago

    Thank you, Doug.  We will test this week and I will mark as solution if all goes well.