The discussion revolves around destroying a user’s session via API. mb450 is trying to log out a user from the forum after they log out of the main website, but is encountering a 302 redirect issue when sending a DELETE request via curl.
mpalmer suggests checking the redirect location and app logs, which mb450 provides, showing a redirect to the forum’s root URL.
mpalmer explains that the redirect is expected behavior and suggests adding an X-Requested-With: XMLHTTPRequest header to suppress the redirect and get a successful response.
mb450 thanks mpalmer and plans to try the solution, later confirming its success in post 6.
I need to destory a session for a given user. (Using sso at the moment) but my users can logout of my main website but I want them to be able logged out of the forum at the same time.