title: How to access session variable to display img_path in img tag in Laravel
body: <p>I am using laravel 5.4 version</p>
  
  <p>I have set an image path in session of laravel in controller in the <code>img_url</code> variable</p>
  
  <p>This is the html code how i am trying to access the image</p>
  
  <pre><code>&lt;img alt="" class="img-circle" src="{{ URL::asset('session("img_url")') }}" /&gt;
  </code></pre>
  
  <p>The <code>img_url</code> has the path <code>assets/user_images/default.png</code> in the public folder</p>
  
  <p>It giving me an error in console like this:</p>
  
  <pre><code>Failed to load resource: the server responded with a status of 403 (Forbidden)  session(%22img_url%22)
  </code></pre>