driver.php 598 Bytes
Newer Older
1
<?php namespace Laravel\Session\Drivers;
2

3
interface Driver {
4 5

	/**
6
	 * Load a session from storage by a given ID.
Taylor Otwell committed
7
	 *
8
	 * If no session is found for the ID, null will be returned.
9
	 *
10 11 12
	 * @param  string  $id
	 * @return array
	 */
13
	public function load($id);
14 15

	/**
16
	 * Save a given session to storage.
17
	 *
18
	 * @param  array  $session
19
	 * @param  array  $config
20
	 * @param  bool   $exists
21 22
	 * @return void
	 */
23
	public function save($session, $config, $exists);
Taylor Otwell committed
24 25

	/**
26
	 * Delete a session from storage by a given ID.
27
	 *
28
	 * @param  string  $id
29 30
	 * @return void
	 */
31
	public function delete($id);
32

33
}