Instapaper/pocket Like Bookmarklet

Hello everybody,

I am trying to write a bookmarklet like Instapaper or Pocket(Read it later) uses in order to transfer data of the current page to my app.

When I click on the bookmarklet I insert this Javascript Snippet in to the header of the current site (could be any website):

<script src="">

With this snippet i am able to connect to my controller which will return Javascript code:

public function actionSubmits()



		echo 'alert("not logged in");';





Now the Problem is, although I am logged in as a user I always get alerted that i am not logged in which means that Yii::app()->user->isGuest returns true although I am logged in. Why is that so?

Any help would be greatly appreciated.

write return false; otherwise remove return from there.

that won’t make any difference.

  1. I am using echo and not return for transfering data to the Javascript Snippet

  2. I am using return to stop the current execution

  3. Yii still identifies me as a guest although i am logged in

Any other suggestions?