title: Laravel automatic logout issue with filter
body: <p>I need some Filter to redirect user to the specific control panel like admin will go to he admin panel and writer will go to he writer area.. so i defined some filters
  Without these filter user are not automatic logout but when using these filter user automatic log out and even navigation one page to second page user automatic logout. </p>
  
  <p>is there any problem in my code?</p>
  
  <p>Here is the code:</p>
  
  <p><strong>Route</strong></p>
  
  <pre><code>Route::filter('allow_only_admin', function()    {
      if (Session::get('role') !== "admin" ){
          if (Session::get('role') == 'writer') {
              return Redirect::route('windex');
          }
      }   });
  
  Route::filter('allow_only_writer', function()
  {
      if (Session::get('role') !== "writer" ){
          if (Session::get('role') == 'admin') {
              return Redirect::route('orders.all');
          }
      }
  });
  Route::group(['prefix' =&gt; 'writer','before'=&gt;'allow_only_writer'], function()
  {
      Route::get('index', ['as' =&gt; 'windex', 'uses'   =&gt; 'Writer@showIndex']);
  });
  </code></pre>