php – Header Referer in Twitter OAuth

Question:

There is a project on symfony2 , there authorization on the HWIOAuthBundle screwed on. After authorization via twitter, the user is sent to the main page of the site. The Referer header is used to return.

VK and FB send it, but TW to no

Answer:

I HWIOAuthBundle not encountered HWIOAuthBundle , but the description contains the use_referer parameter:

An optional parameter to use the HTTP REFERER header if missing, the previous URL was stored in the session (that is, the resource was not requested).

I think for tweeter it should be set to false

Scroll to Top