XF 2.2 _xfRedirect when already logged in?

Hi,

I'm developing an external application that uses the Xenforo 2.2 API to confirm login.
It works fine if the user isn't logged in. The page correctly logs them in and redirects back to the specified URL using the www.example.com?_xfRedirect=page.html

It doesn't appear to work if the cookie has expired, then clicking on login takes you to the page that says:
You are already logged in. Please click here to return to the forum list.
I assume this reconfirms the login and resets the cookie.

Is there a way to redirect this page back correctly?

Thanks in advance
 
Back
Top Bottom