Take the 2-minute tour ×

I want to put a link into a word file or excel with some variables, like this one:www.mywebsite.com/view.php?id=12345. When the user clicks then, if he is logged in he can see the profile of that user if he is not logged in he is redirected to index. I don't understand why it's not working. Now, if a user clicks on the link and is logged he is redirected to his own page and not to the page with id 12345, if he is not logged then he is redirected to index(that's ok). I don't understand why the user cannot see the page with id 12345! If I copy and paste the link in the browser it works ( the user can see the page with id=12345 and not his page). I control if a user is logged like this:

   $auth = Zend_Auth::getInstance();
          if ($auth->getIdentity()->user_midnam) { here goes the page}
            header("Location: index.php");

It's like if I open a page from word/excel zend doesn't recognize that the user has allready a session active and sends the user to index...and the index sends the user to his homepage because the index has also a control and there it works.

share|improve this question
link this is like my problem, but there is no solution there. –  re_ru Oct 15 '12 at 14:25

Your Answer



Browse other questions tagged or ask your own question.