前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >SAP WebClient UI的会话重启原理

SAP WebClient UI的会话重启原理

作者头像
Jerry Wang
发布2020-08-24 11:53:26
3410
发布2020-08-24 11:53:26
举报

For each business role we can assign a technical profile to it.

Do you know the meaning of the Memory Threshold configured here?

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-t03D5Agv-1598016586314)(https://upload-images.jianshu.io/upload_images/2085791-e3db0d2882c875cf.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]

If not, you can set a very low value to it for example 10MB, and go back to your system to observe the session restart behavior.

How the need of session restart is detected

Every time we switch among different work centers, the necessity of session restart is checked:

In handle_restart method, for Non-external navigation ( navigation between WebUI work centers ), BOL reset is by default considered as necessary – gv_bol_reset_requested is set as true in line 18.

Later on the navigation handling method this flag will be evaluated:

And the check about whether the current memory consumption has exceeded the threshold configured in technical profile is performed in line 23, method query_session_reset. The check logic done in below method:

Once it is determined to restart the current session, a flag gv_restart_cause is set with corresponding reset reason.

How the session restart is implemented

If the method is_session_restart_required discussed in previous chapter returns true, it is now ready to prepare Javascript code to restart the session.

Before restart, all current user data are stored via server side cookie. From the implementation of GET_RESTART_SCRIPT you can find the Javascript code for restart.

You can of course debug this JavaScript function in Chrome:

When a new session is successfully launched, all previous stored information are now restored:

How Memory Threshold set in Technical profile is loaded by UI framework

This is pretty easy to find, in constructor of CL_CRM_UI_MEMORY_UTILS.

How to view session restart log

Activate log setting in tcode SAAB, log point id: BSP_WD_MEM_TRACE After that once session restart and restore occurs, it will be recorded and displayed in SAAB:

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2020-08-21 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • How the need of session restart is detected
  • How the session restart is implemented
  • How Memory Threshold set in Technical profile is loaded by UI framework
  • How to view session restart log
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档