简体   繁体   English

如果用户在 javascript 应用程序在 Z226776F3561A5D33FZ0BAB 中仍然处于活动状态,我如何扩展 Joomla session?

[英]How can i extend Joomla session if user still active on client javascript application in joomla?

I faced this problem: JS(jquery) application is integrated to joomla.我遇到了这个问题:JS(jquery)应用程序集成到 joomla。 How can i know user still active on JS application and if user is active how can i extend joomla session timeout?我如何知道用户在 JS 应用程序上仍然处于活动状态,如果用户处于活动状态,我如何延长 joomla session 超时?

Do an Ajax call once in a while which just updates the session time on the server.偶尔执行一次 Ajax 调用,它只会更新服务器上的 session 时间。 You can use window.setInterval() in JS to schedule this.您可以在 JS 中使用 window.setInterval() 来安排这个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM