The following code prints "test: bar" but not "home: bar". This code works fine locally on my XAMPP server but doesn't work on my webhost server. At first I thought it was an issue with the PHP version, but I don't think it's that anymore. I'm thinking it has to be some setting I have to enable on the webhost? Does anyone know what may be causing this?
class HomeController extends BaseController {
public function home()
{
echo "home: " . Session::get('foo');
}
public function test()
{
Session::put('foo','bar');
echo "test: " . Session::get('foo');
return Redirect::route('home');
}
}
Actual Output:
test: bar
home:
Expected Output:
test: bar
home: bar