[Building Sakai] Avoid session expiration via restful

Charles Severance csev at umich.edu
Thu Feb 7 08:05:06 PST 2013


Francisco,

If you look at:

https://source.sakaiproject.org/svn/portal/trunk/portal-charon/charon/src/webapp/scripts/neoscripts.js

You will see how the portal handles this.

Look for  poll_session_data() and keep_session_alive()

The /direct/session specifically does not reset last access because it is the way to read last access to most accurately set the timeout dialog box.

In keep_session_alive() - it just uses jQuery to do an in-browser get of the /portal URL and discards the results.  It extends the session.  It might seem heavy - but the code uses /direct/session to make sure it only happens when the timer is really expiring.

/Chuck

On Feb 7, 2013, at 10:22 AM, Francisco wrote:

> Hi all,
> 
> there is any way to refresh sakai session via restful to avoid it to expire? Because we have detected that calling ".../direct/session.json?sakai.session=xxx" does not update "lastAccessedTime" property.
> 
> I know that I can modify entitybroker to do that, but I prefer to confirm there is no more options. Maybe have you think something similar for the restful new features???
> 
> Thanks and regards.
> Francisco
> -- 
> <image002.jpg>
>  
> Francisco Sáez
> Analista - Programador
> francisco.saez at samoo.es
> +34 - 673 80 32 69
> www.samoo.es
>  
> Este  correo  y  sus archivos asociados son privados y confidenciales y va dirigido  exclusivamente  a su destinatario. Si recibe este correo sin ser el  destinatario del mismo, le rogamos proceda a su eliminación y lo ponga en  conocimiento del emisor. La difusión por cualquier medio del contenido de  este  correo podría ser sancionada conforme a lo previsto en las leyes españolas, Ley Orgánica 15/1999 de Protección de Datos de Carácter Personal.  No  se autoriza la utilización con fines comerciales o para su incorporación a ficheros automatizados de las direcciones del emisor o del destinatario.”
>  
> This mail and its attached files are confidential and are only and exclusively intended to their addressee. In case you may receive this mail not being its addressee, we beg you to let us know the error by reply and to proceed to destroy it. The circulation by any mean of this mail could be penalised in accordance with the Spanish legislation. Is not allowed the use of both, the transmitter and the addressee’s, address with a commercial aim, or in order to be incorporated to automated data process or to any kind of files.
>  
> P Antes de imprimir este correo electrónico piense bien si es necesario hacerlo. El medioambiente es cosa de todos.
>  
>  
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
> 
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20130207/e1fa7d53/attachment.html 


More information about the sakai-dev mailing list