Browse Source

Tweak for session changes.

Taylor Otwell 11 years ago
parent
commit
d9c559ba7f
2 changed files with 3 additions and 3 deletions
  1. 2 2
      app/config/session.php
  2. 1 1
      app/filters.php

+ 2 - 2
app/config/session.php

@@ -11,12 +11,12 @@ return array(
 	| requests. By default we will use the light-weight cookie driver but
 	| requests. By default we will use the light-weight cookie driver but
 	| you may specify any of the other wonderful drivers provided here.
 	| you may specify any of the other wonderful drivers provided here.
 	|
 	|
-	| Supported: "cookie", "file", "database", "apc",
+	| Supported: "native", "file", "database", "apc",
 	|            "memcached", "redis", "array"
 	|            "memcached", "redis", "array"
 	|
 	|
 	*/
 	*/
 
 
-	'driver' => 'cookie',
+	'driver' => 'native',
 
 
 	/*
 	/*
 	|--------------------------------------------------------------------------
 	|--------------------------------------------------------------------------

+ 1 - 1
app/filters.php

@@ -73,7 +73,7 @@ Route::filter('guest', function()
 
 
 Route::filter('csrf', function()
 Route::filter('csrf', function()
 {
 {
-	if (Session::getToken() != Input::get('_token'))
+	if (Session::token() != Input::get('_token'))
 	{
 	{
 		throw new Illuminate\Session\TokenMismatchException;
 		throw new Illuminate\Session\TokenMismatchException;
 	}
 	}