Is there a way/setting to make a particular page never load from cache ? ie always fresh loading
Is this possible ?. ie Whenever a page is loaded, it should never load from cache ? Any specific setting to do this for a particular, I mean not for all the pages, ONLY for certain pages.
My problem is that I have a Custom Login Page
I have the following flow
My Custom Login Page -> Home Page (Home page has Navigation bar to navigate to different pages)
On all the pages I have a given the option to Logoff ON the NavigationBar TopItem. If the user clicks on it it should log off and then the Login page with the Login prompt should appear
page.NavigationBar.AddTopItemEx("AppLogOff", "Logout", "mdi-action-input", "", ABM.VISIBILITY_ALL,ABM.COLOR_WHITE, "", ABM.ICONALIGN_LEFT)
On each and every page's Page_NavigationbarClicked, I have the following code
' clicked on the navigation bar
Sub Page_NavigationbarClicked(Action As String, Value As String)
' saving the navigation bar position
page.SaveNavigationBarPosition
If Action = "AppLogOff" Then
ABMShared.AppLogOff(page)
Return
End If
ABMShared.NavigateToPage(ws, ABMPageId, Value)
End Sub
This is the code for AppLogOff in ABMShared
Sub AppLogOff(page As ABMPage) 'ignore
' do whatever you have to do to log off your user
page.ws.Session.SetAttribute("UserID", 0)
page.ws.Session.SetAttribute("AppType", "")
page.ws.Session.SetAttribute("DirectLogin", 0)
Dim LoginPageID As String
LoginPageID = page.ws.Session.GetAttribute("LoginPageID")
NavigateToPage(page.ws, LoginPageID, "../Login/index.html")
End Sub
In the Sub AppLogOff() I should call the Login Page. I do not know how to get the PageID of the LoginPage inside ABMShared so that I could call for a page reload avoiding the cache. The login modal sheet is in the ConnectPage() of Login.
To overcome this issue what I have done is that In the Login page's ConnectPage() I save the PageID to a session variable and then in the Sub AppLogOff(), I use the saved PageID to reload the Login Page. I do not know whether what I have did is the correct way. OR Is there a better way to do this.