Class NativeSessionStore

Description

PHP session based implementation of the session store. session storage used by the Y!OS PHP SDK. implement their own session store implementations and pass them to YahooSession::hasSession, YahooSession::requireSession and YahooSession::clearSession. to YahooSession::hasSession or YahooSession::requireSession, an instance of a NativeSessionStore is used.

PHP session based implementation of the session store. This is the default session storage used by the Y!OS PHP SDK. Developers are free to implement their own session store implementations and pass them to YahooSession::hasSession, YahooSession::requireSession and YahooSession::clearSession. By default, if no session store is passed to YahooSession::hasSession or YahooSession::requireSession, an instance of a NativeSessionStore is used.

Located in /Yahoo.inc (line 1548)


	
			
Method Summary
 NativeSessionStore NativeSessionStore ()
 True hasAccessToken ()
 True hasRequestToken ()
 void storeAccessToken ($token $token)
 void storeRequestToken ($token $token)
Methods
Constructor NativeSessionStore (line 1550)
NativeSessionStore NativeSessionStore ()
clearAccessToken (line 1623)

Clears the access token from the session store.

Clears the access token from the session store.

void clearAccessToken ()
clearRequestToken (line 1597)

Clears the request token from the session store.

Clears the request token from the session store.

void clearRequestToken ()
fetchAccessToken (line 1615)

Fetches and returns the access token from the session store.

Fetches and returns the access token from the session store.

  • return: access token.
The fetchAccessToken ()
fetchRequestToken (line 1589)

Fetches and returns the request token from the session store.

Fetches and returns the request token from the session store.

  • return: request token.
The fetchRequestToken ()
hasAccessToken (line 1571)

Indicates if the session store has an access token.

Indicates if the session store has an access token.

  • return: if an access token is present, false otherwise.
True hasAccessToken ()
hasRequestToken (line 1562)

Indicates if the session store has a request token.

Indicates if the session store has a request token.

  • return: if a request token is present, false otherwise.
True hasRequestToken ()
storeAccessToken (line 1606)

Stores the given access token in the session store.

Stores the given access token in the session store.

void storeAccessToken ($token $token)
  • $token $token: A PHP stdclass object containing the components of the OAuth access token.
storeRequestToken (line 1580)

Stores the given request token in the session store.

Stores the given request token in the session store.

void storeRequestToken ($token $token)
  • $token $token: A PHP stdclass object containing the components of the OAuth request token.

Documentation generated on Thu, 22 Oct 2009 12:54:51 -0700 by phpDocumentor 1.4.3