I am using the following code to show a "Log In" link if a member is not currently logged in, and this changes to "Log Out" if they are logged in. However, I'm unsure of what the link should be to actually log someone out.
I dont understand how these "controls" work - I have used the Member package from the repository which allows users to login so they can see protected pages etc. The logout button that comes with the package has this code - but this only works on the login page that you create.
This javascript method will only work on the same page you use to login though.
I have more or less 95% of the functionality I need with this package so I don't wish to move away from it. Are there any tutorials with how to get to grips with these "controls" that you give above - as Im not an asp developer I just try to get along with XSLT when I use umbraco.
Logout button for members
Hi,
I am using the following code to show a "Log In" link if a member is not currently logged in, and this changes to "Log Out" if they are logged in. However, I'm unsure of what the link should be to actually log someone out.
As you can see on Line 3 - I'm unsure of what this url should be in order to log the member out. Any help would be great, Garry.
Hi Garry,
It depends on what controls you are using to perform the login. Are you using the standard asp.net login controls?
If so, you could always use the LoginStatus Control
Cheers,
Chris
And for the record if you want to signout somone from a codebehind.
I dont understand how these "controls" work - I have used the Member package from the repository which allows users to login so they can see protected pages etc. The logout button that comes with the package has this code - but this only works on the login page that you create.
This javascript method will only work on the same page you use to login though.
I have more or less 95% of the functionality I need with this package so I don't wish to move away from it. Are there any tutorials with how to get to grips with these "controls" that you give above - as Im not an asp developer I just try to get along with XSLT when I use umbraco.
Cheers, Garry.
I think there's a xslt extension in my ClientArea project your could use.. have a look at our.umbraco.org/projects/clientarea
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.