簡體   English   中英

如何在會話中存儲aspx頁面?

[英]How to store the aspx page in a session ?

我在一次采訪中問了這個問題。 您能否解釋一下是否可以在會話中存儲整個aspx頁。 如果可能,我們應該使用哪種會話模式? 您能否提供任何鏈接或代碼給我,以便我對它有所了解。

以自定義方式緩存頁面的正確方法是構建自己的提供程序。 問題是,當從緩存中請求項目或將項目添加到緩存中時,尚未創建Session對象(為null),因此您不能使用session存儲頁面。

我認為他/她想詢問大型會話狀態變量對服務器內存的影響,如果有的話,這可能會有所幫助

Disadvantage of using session state are:
Performance considerations :
Session-state variables stay in memory until they are either removed or replaced,
and therefore can degrade server performance. Session-state variables 
that contain blocks of information, such as large datasets, can adversely affect
Web-server performance as server load increases.

資源

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM