首页 文章

Excel Online 365 Javascript API加载项会话超时

提问于
浏览
0

我们开发了一个使用会话变量的Excel Online Javascript加载项 . 这些变量每15-20分钟持续获得会话超时 . 我们想知道解决它的方法或增加超时 . 根据这个页面

https://support.office.com/en-us/article/sessions-and-session-time-outs-in-a-workbook-in-the-browser-74938c0d-9652-4f10-b87c-1a7682540dfb#__toc241372471 "To prevent a session timeout, you must interact with the workbook. This might include navigation around the workbook, sorting, filtering, or any other activity that you do with the elements of the workbook. When the server detects user interaction with the workbook, it keeps the session active."

我们的用户通常会离开页面并需要重新登录 . 所以看起来我们唯一的选择只是增加超时但你如何在Excel Online 365中这样做?

谢谢 .

1 回答

  • 0

    没有会话控制API . 您可以尝试每隔一段时间进行一些简单的读取操作(计时器),看看是否能使会话保持活动状态 . API使用与应用会话相同的会话通道 . 因此,API交互可以使会话保持活跃 .

相关问题