Thought i would post a problem i encountered with “?logout” and the solution i stumbled upon.
I used the following code for a hotspot on a page (named “mainWebPage”):
srvName := @Name( [CN]; @ServerName );
webDB := @DbLookup( “”:“NoCache”;“”;“(luKeywords)”;“database*website”;2);
siteUrl := @DbColumn( “”:“NoCache”; srvName:webDB; “(luSetupDoc)”; 2 );
“http://” + siteUrl + “/” + @WebDbName + “/MainWebPage?OpenPage&logout”
This would log out the user the first time they used the hotspot, but if they then logged back in and hit the logout hotspot again, it would not log them out.
I changed the last line in the hotspot to :
“http://” + siteUrl + “/” + @WebDbName + “?logout&redirectto=/” + @WebDbName + “/levyMainWebPage?OpenPage”
This works every time, regardless of how many times the user logs in & out.
I suspect the problem stems from having the original hotspot code pointing back to the page that it was on.
Hope this little finding helps someone else out.
Cheers
andyG