When a user's session expires and they're on a page that uses ajax requests, you need to set up something to gracefully handle reauthenticating. In this example, we prompt the user and redirect them to the login page.
For Laravel, in your auth filter:
<?php
Route::filter('auth', function()
{