Developer forum

Forum » Feature requests » Stay on page after logout

Stay on page after logout

Anders Ebdrup
Reply

Hi Dw,

 

I am missing the ability to stay on the current page when the user is logging out - e.g. if you log out on this page: http://solutionset2013.dynamicweb.dk/en-US/ProductList/Bikes/Mountain-bikes/Mongoose-Canaan-Comp-.aspx, then you are redirected to the this page: http://solutionset2013.dynamicweb.dk/en-US/ProductList.aspx, which is some how out of context.

 

Then it would be create to be able to set a redirect path in the call to to: "/Admin/Public/ExtranetLogoff.aspx?redirect=http://solutionset2013.dynamicweb.dk/en-US/ProductList/Bikes/Mountain-bikes/Mongoose-Canaan-Comp-.aspx".

 

Best regards, Anders


Replies

 
Nuno Aguiar
Reply

Hi Anders,

 

Just use "/Admin/Public/ExtranetLogoff.aspx?ID =<!--@Global:Page.ID-->" and the user will be left on the same page

 

However,  if the user is an extranet/intranet page, it will render the login template, since the end-user will try to access a webpage to which he has no longer access.

 

Best Regards,

Nuno

 
Anders Ebdrup
Reply

Hi Nuno,

 

It's correct, but you can not stay on a product page, only a cms-page

 

Best regards, Anders

 
Nuno Aguiar
Reply

Hi Anders,

 

I see the problem :(

 

Have you tried "/Admin/Public/ExtranetLogoff.aspx?ID=1057&threadid=32915&PID=1605" or something similar?

 

I honestly have not tried, but if the ExtranetLogOff.aspx could reuse all of the parameters to Default.aspx, would solve the issue

 

Nuno

 
Anders Ebdrup
Reply

 

Original message by Nuno Aguiar posted on 08/08/2013, 12:27:

Hi Anders,

 

I see the problem :(

 

Have you tried "/Admin/Public/ExtranetLogoff.aspx?ID=2&ThreadID=32915&cmd=createPost&ReplyID=32919" or something similar?

 

I honestly have not tried, but if the ExtranetLogOff.aspx could reuse all of the parameters to Default.aspx, would solve the issue

 

Nuno

 

I have decompiled the code for "LogOff":

 HttpContext.Current.Session.Abandon();
      if (Microsoft.VisualBasic.CompilerServices.Operators.CompareString(Base.Request("ID"), "", false) != 0 & Versioned.IsNumeric((object) Base.Request("ID")))
        HttpContext.Current.Response.Redirect("/Default.aspx?ID=" + Base.Request("ID"));
      else
        HttpContext.Current.Response.Redirect("/Default.aspx");
      HttpContext.Current.Response.End();

So no possibility for redirection other than to a page :-(