Browse Source

Add some more comments to the session payload.

Taylor Otwell 13 years ago
parent
commit
ba300e0233
1 changed files with 9 additions and 1 deletions
  1. 9 1
      laravel/session/payload.php

+ 9 - 1
laravel/session/payload.php

@@ -250,6 +250,14 @@ class Payload {
 	/**
 	 * Store the session payload in storage.
 	 *
+	 * The activity timestamp will be set, the flash data will be aged, and the
+	 * session cookie will be written. The driver given when the session payload
+	 * was constructed will be used to persist the session to storage.
+	 *
+	 * If the session's driver is a sweeper implementation, garbage collection
+	 * may be performed based on the probabilities set in the "sweepage" option
+	 * in the session configuration file.
+	 *
 	 * @return void
 	 */
 	public function save()
@@ -309,4 +317,4 @@ class Payload {
 		Cookie::put($cookie, $this->session['id'], $minutes, $path, $domain, $secure);	
 	}
 
-}
+}