Amiro.Ru / Manual | |||||||||||||||
Packages:
DB Debug Driver_PaymentSystem Environment Library Module ModuleComponent Package Plugin Plugin_AJAXResponder Plugin_Sample Service Template TxCommand TxService Hyper_AmiCatalog Hyper_AmiClean Hyper_AmiEshopShipping Hyper_AmiExt Hyper_AmiFiles Hyper_AmiMultifeeds Hyper_AmiSearch Hyper_AmiUsers Config_AmiCatalog_Items Config_AmiClean_AmiNewsList Config_AmiClean_AmiSample Config_AmiClean_EshopOrder Config_AmiClean_Sape Config_AmiClean_Trustlink Config_AmiClean_Webservice Config_AmiEshopShipping_Fields Config_AmiEshopShipping_Methods Config_AmiEshopShipping_Types Config_AmiFake_AmiroPayDrvExample Config_AmiFiles_Files Config_AmiMultifeeds_Articles Config_AmiMultifeeds_Blog Config_AmiMultifeeds_FAQ Config_AmiMultifeeds_News Config_AmiMultifeeds_Photoalbum Config_AmiMultifeeds_PhotoGallery Config_AmiMultifeeds_Stickers Config_AmiUsers_Users Module_Catalog Module_Pages Module_Sample Module_SearchHistory
Classes:
|
Loading search... The AMI_Session class• IntroductionSession class. • Class synopsis
AMI_Session
{
/* Methods */
// Returns current session id.
// Returns authorized user object or null if visitor is not authorized.
// Return flag logged in current user in this session or not.
// Returns is session was started or not.
// Login current user using login and password.
// Login user depends validate only by login.
// Logout current user.
// Requires authorized user.
public
requireAuthorizedUser ( [ string $url = '' ], [ string $backURL = '' ], [ string $shortSessionId = '' ] ) returns void;
// Sets session variables prefix to isolate data between different modules.
// Starts session.
// Stops session.
// Store sessions data.
// Property getter.
// Property getter.
// Property setter.
// Property setter.
}
• Class Details Example:
Tags:
• Class Methods// Returns current session id.
// Returns authorized user object or null if visitor is not authorized.
// Return flag logged in current user in this session or not.
Tags:
// Returns is session was started or not.
// Login current user using login and password.
// Login user depends validate only by login.
Usefull for remote application integration. When password is unknown, but user valid and remote user id present. Example:
Tags:
// Logout current user.
See AMI_Session::login() for usage example.
Tags:
// Requires authorized user.
public
requireAuthorizedUser ( [ string $url = '' ], [ string $backURL = '' ], [ string $shortSessionId = '' ] ) returns void;
Tags:
// Sets session variables prefix to isolate data between different modules.
// Starts session.
Return hash where key is cookie session id name and value is cookie session id value.
See AMI_Session::login() for usage example. // Stops session.
// Store sessions data.
// Property getter.
Property access implementation.
// Property getter.
Property access implementation.
// Property setter.
Property access implementation.
// Property setter.
Property access implementation.
|