prestashop_newuser Posted April 8, 2016 Share Posted April 8, 2016 Is there any kind of function that can be used to logout user programmatically? Also I want to redirect user to a custom url so is there any kind of core function for that is available? Link to comment Share on other sites More sharing options...
shokinro Posted April 9, 2016 Share Posted April 9, 2016 yes, you can use following method Context::getContext()->customer->logout(); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now