日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

SAP WebClient UI的会话重启原理

發(fā)布時間:2023/12/19 编程问答 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 SAP WebClient UI的会话重启原理 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

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

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

[外鏈圖片轉(zhuǎn)存失敗,源站可能有防盜鏈機(jī)制,建議將圖片保存下來直接上傳(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:

要獲取更多Jerry的原創(chuàng)文章,請關(guān)注公眾號"汪子熙":

總結(jié)

以上是生活随笔為你收集整理的SAP WebClient UI的会话重启原理的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。