I have a secure application in my website.I am using a button in my menu to logout. But it is not logging the user out. After I logout it still shows the status as login and the username.The code for onclick for button is
If I use the loginview control in the page it works and shows the status as logout. But the problem is the pages I previously visited shows up(probably from cache I think). the cache for the page is turned off.
Can you tell me what code does the logout button in loginview has so I can use the same code in my menu button. Also how do I turn off the page caching.