CGI.Logout() doesn't redirect. in Developer Help
|
|
I've noticed calling CGI.Login() redirects the user to the page they clicked in from, but CGI.Logout() brings them to this page. Is there anyway to change this behavour? It would make login and logout links on DMCGI websites a bit smoother.
|
Sure enough, Logout("http://google.com/") redirects to Google after logout. The desired call would then probably be:
Logout(GetEnv("SCRIPT_URI"))Not sure why Dan made the default stay at the BYOND login page, but perhaps we'll change it in a future version if that makes sense.