Fórum

Logout and login url

Jesse Paria, modificado 12 Anos atrás.

Logout and login url

Junior Member Postagens: 69 Data de Entrada: 04/03/11 Postagens Recentes
I am trying to create a link that will log the user out and redirect to the login page, which will redirect to the page the user was at before clicking on the link

Here is what I have

/c/portal/logout?referer=/c/portal/login?p_l_id=82022?redirect=/originalURL

This is how I have it written in my jsp file:
<%=logOutURL%>?referer=<%=comSignInUrl%>?redirect=<%=currentUrl%>

This doesn't seem to work as it brings me to the login page but after that it redirects to the parent page of the community

Any suggestions? Someone has to have succeeded in doing this.

Thanks