Answer the question
In order to leave comments, you need to log in
How to define an SSE request?
The task is such, you need to track which page the user visits.
I am using Yii and
protected function beforeAction()
{
// вызов функции, которая в базу пишет url
}
if( !Yii::app()->request->isAjaxRequest )
{
libUsers::load()->where_the_user();
}
Answer the question
In order to leave comments, you need to log in
SSE requests probably have some special http header by which they can be identified. Try to look at the request headers more closely in firebug, maybe you will see some kind of distinguishing feature.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question