title: Laravel sessions regenerating on every load
body: <p>I'm having a lot of problems and I really can't seem to find a solution.</p>
  
  <p>Yesterday, I finished up doing some work on a vagrant box in Laravel. When I shut down the computer, login functionality was working fine.</p>
  
  <p>On opening everything up today I find sessions are no longer working.</p>
  
  <p>I've tried everything I can think of but I cannot log in now and flash data doesn't work.</p>
  
  <p>Every page load a new session is created - e.g using the native driver, if I login, it creates two sessions - one for the login page, and one for the posted login page.</p>
  
  <p>If I use a database driver I get the same result. Every time I click login, I get a further two rows of session data</p>
  
  <p>I can't tell what's happening with the cookie driver but I've tried it and it's not working.</p>
  
  <p>I've tried in Chrome and IE and neither will login. I've tried deleting the contents of the storage folder multiple times, and emptying cookies on the browser side. I did think it may be to do with the time being different on the vm and the local machine but they're synchronised.</p>
  
  <p>Any ideas what could be causing this? Anyone come across this issue before?</p>
  
  <p>edit: I've also now recreated the virtual machine and the problem still exists</p>
  
  <p>second edit: I've now started from scratch using a digitalocean VPS with the same results.</p>
  
  <p>I've stripped out everything in my routes file and all it now has is the following</p>
  
  <pre><code>&lt;?php
  
  Route::get('/sess/set/{value}', function($value) {
      Session::set('testv', $value);
  Return 'Set ' . $value . ' - ' . Session::get('testv');
  });
  
  Route::get('/sess/get', function() {
      Return 'Get ' . Session::get('testv');
  });
  </code></pre>
  
  <p>I visit the first page and it shows whatever value I put into the session. Hit the second page and you only get the 'Get ' part without any session value.</p>
  
  <p>session_attributes always has a _token field, I've tried changing the name of the session and the domain and still can't get sessions to work.</p>
  
  <p>edit3: for anyone who comes across this, I never identified the issue. I started a completely new project, copied my controllers and views across, recreated my routes file and everything is now working - although I'm half expecting to be updating this post tomorrow to say it's broken again!</p>