english/libraries/joomla/session/storage/database.php
/**
	 * Read the data for a particular session identifier from the
	 * SessionHandler backend.
	 *
	 * @param   string   The session identifier.
	 * @return  string   The session data.
	 * @since   11.1
	 */
Read the data for a particular session identifier from the
SessionHandler backend.

@param   string   The session identifier.
@return  string   The session data.
Read the data for a particular session identifier from the SessionHandler backend . @param string The session identifier . @return string The session data .
public function read($id)
	{
		$db = JFactory::getDbo();
		if (!$db->connected()) {
			return false;
		}
		$db->setQuery(
			'SELECT `data`' .
			' FROM `#__session`' .
			' WHERE `session_id` = '.$db->quote($id)
		);
		return (string) $db->loadResult();
	}
public function read ( $ id ) { $ db = JFactory :: getDbo ( ) ; if ( ! $ db -> connected ( ) ) { return false ; } $ db -> setQuery ( 'SELECT `data`' . ' FROM `#__session`' . ' WHERE `session_id` = ' . $ db -> quote ( $ id ) ) ; return ( string ) $ db -> loadResult ( ) ; }
Read the data for a particular session identifier from the
 SessionHandler backend.
Read the data for a particular session identifier from the SessionHandler backend .
// Get the database connection object and verify its connected. // Get the session data from the database table.