title: How to get guest user sessionid in Yii2?
body: <p>I have used YII's session_id's to track user activity across a website with the following code snippet:</p>
  
  <p><code>Yii::app()-&gt;getSession()-&gt;getSessionId()</code></p>
  
  <p>How do I get same sessionid in Yii2? I tried quite possible way, but its all vain.</p>
  
  <p>Please share the exact code snippet for Yii2.</p>