Call User From Multiple Process And Stuck

Hi,

There is multiple url, from one url there is an implementation which call to the function :

public static function ValidateAuthorization()


{


    


    if(Yii::app()->user->isGuest)


    {


        throw new Exception(messageTexts::MESSAGE_MUST_LOGIN);


    }


 }

and then continue to make some code for 2-3 minutes.

Meantime, I’m trying to call other url which first call to function ValidateAuthorization and stuck in line if(Yii::app()->user->isGuest) and continue just after the first url completed.

Why is it stuck? Please note that if I remove the calling to function ValidateAuthorization in the second url, then it return immediately and doesn’t stuck.

Please advise

Moti

Is this a Yii2 question? What is messageTexts::MESSAGE_MUST_LOGIN? Should it be a CExecption not an Exception? Just some thoughts. :)