Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

How can member logout ?


Go to End


5 Posts   972 Views

Avatar
imsomagic

Community Member, 6 Posts

16 October 2014 at 10:34am

Hello,

I recently installed the module memberprofiles and all work great, except that I am unable to find where and how I could embed a link where members can log out.

Thank you for helping me!

Link to the module : http://addons.silverstripe.org/add-ons/ajshort/silverstripe-memberprofiles

Avatar
kinglozzer

Community Member, 187 Posts

17 October 2014 at 12:45am

You just need to create a link to http://mysite.com/Security/logout.

Hope this helps,
Loz

Avatar
imsomagic

Community Member, 6 Posts

17 October 2014 at 1:57am

I already try it, but when I click on the link it's a blank page and nothing seem to work..?

Avatar
kinglozzer

Community Member, 187 Posts

17 October 2014 at 4:27am

Hi,

It should just redirect back to the last page. Are there any errors in your error logs?

You could try setting the url to http://mysite.com/Security/logout?BackURL=%2F which should redirect to the home page

Loz

Avatar
imsomagic

Community Member, 6 Posts

17 October 2014 at 7:47am

Work great! Thank you!