Hi!
How can you make a logout link/button that after a click logs out the user? Is it possible with a global template tag or do you have to use a module?
Best regards,
Per
Developer forum
E-mail notifications
Extranet logout
Per Ljung
Posted on 19/05/2011 09:56:40
Replies
Rune Skovbo
Posted on 19/05/2011 13:14:11
Hi Per
This should do the trick:
<a href="/Admin/Public/extranetlogoff.aspx?ID=<!--@DwPageID-->">Log out</a>
Or like this in your "tools" menu:
<!--@If Defined(Global:Extranet.UserName)-->
<li>
<a href="/Admin/Public/extranetlogoff.aspx?ID=<!--@DwPageID-->">Log out</a>
</li>
<!--@EndIf(Global:Extranet.UserName)-->
/Rune
This should do the trick:
<a href="/Admin/Public/extranetlogoff.aspx?ID=<!--@DwPageID-->">Log out</a>
Or like this in your "tools" menu:
<!--@If Defined(Global:Extranet.UserName)-->
<li>
<a href="/Admin/Public/extranetlogoff.aspx?ID=<!--@DwPageID-->">Log out</a>
</li>
<!--@EndIf(Global:Extranet.UserName)-->
/Rune
Chris Stead
Posted on 24/11/2014 18:04:15
Is there some way to run code when a user logs out (e.g. an event I could subscribe to)?
I need to clear out some session variables on log out and I'm not sure how to do this.
Regards,
Chris
Lars Larsen
Nicolai Høeg Pedersen
Posted on 25/11/2014 09:00:14
Chris Stead
Posted on 25/11/2014 09:55:36
Thanks for the info, and for the swift replies :-)
You must be logged in to post in the forum