SAP WebClient UI的會話重啟原理
For each business role we can assign a technical profile to it.
Do you know the meaning of the Memory Threshold configured here?
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的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2715059/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ABAP Webdynpro和WebClient UI不同的會話管理機制WebclientUI會話
- SAP WebClient UI的白屏問題分析WebclientUI
- 在SAP CRM WebClient UI裡開啟ABAP Webdynpro頁面WebclientUI
- 使用note++開發SAP WebClient UIWebclientUI
- 如何在SAP WebClient UI裡使用jChartFXWebclientUI
- SAP WebClient UI One Hit Navigation的實現方法WebclientUINavigation
- SAP CRM WebClient UI和Hybris backoffice UI開發的相同點WebclientUI
- 在SAP WebClient UI裡顯示倒數計時的UIWebclientUI
- SAP CRM WebClient UI和Fiori UI混搭並存WebclientUI
- SAP Commerce Cloud UI 的使用者會話管理CloudUI會話
- SAP CRM WebClient UI異常的持久化機制WebclientUI持久化
- 將SAP CRM WebClient UI的表格匯出成PDFWebclientUI
- 如何將SAP WebClient UI的表格匯出成PDFWebclientUI
- SAP Fiori和WebClient UI的有狀態和無狀態行為設計原理WebclientUI
- 如何在SAP WebClient UI裡使用HANA Live reportWebclientUI
- SAP WebClient UI配置決定(configuration)的邏輯介紹WebclientUI
- SAP CRM WebClient UI的Delta處理機制介紹WebclientUI
- SAP CRM WebClient UI html 格式的 Text 顯示邏輯WebclientUIHTML
- SAP CRM WebClient UI 支援的一些 url 引數WebclientUI
- SAP CRM WebClient UI和Hybris的controller是如何被呼叫的WebclientUIController
- SAP CRM WebClient UI的on_new_focus應該怎麼理解WebclientUI
- SAP CRM WebClient UI表格編輯模式的除錯明細WebclientUI模式除錯
- SAP CRM WebClient UI和Hybris Commerce的懶載入機制WebclientUI
- SAP WebClient UI和business switch相關的邏輯介紹WebclientUI
- 增強版本的自開發SAP WebClient UI Repository Information SystemWebclientUIORM
- SAP CRM WebClient UI Text Type 顯示的過濾邏輯WebclientUI
- 在SAP CRM WebClient UI中用javascript觸發ABAP eventWebclientUIJavaScript
- 使用Selenium自動化測試SAP CRM WebClient UIWebclientUI
- 自己實現一個SAP WebClient UI Repository Information SystemWebclientUIORM
- SAP WebClient UI component模型後設資料解析工具WebclientUI模型
- SAP CRM WebClient UI cross component跳轉的一個具體例子WebclientUIROS
- SAP WebClient UI頁面標籤的決定邏輯介紹WebclientUI
- SAP CRM WebClient UI Text 可編輯與否的控制邏輯WebclientUI
- 使用SAP Transaction Launcher將ABAP Webdynpro嵌入到WebClient UI中WebclientUI
- SAP WebClient UI component context node class單元測試方法WebclientUIContext
- SAP CRM WebClient UI和ABAP Webdynpro頁面的互相跳轉WebclientUI
- 如何在SAP WebClient UI裡建立柱狀圖(bar chart)WebclientUI
- Hybris service layer和SAP CRM WebClient UI架構的橫向比較WebclientUI架構