2024-03-04 22:57:28 +08:00
<!doctype html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width" >
< title > Class Opencart\System\Library\Session | OpenCart API API< / title >
2024-03-04 23:29:14 +08:00
< link rel = "stylesheet" href = "http://localhost\opencart-master/docs/api/assets/main.css" >
< script src = "http://localhost\opencart-master/docs/api/assets/main.js" defer > < / script >
2024-03-04 22:57:28 +08:00
< / head >
< body class = "layout" >
< div class = "layout-aside" >
< div class = "menu" >
< div class = "menu-section" >
< h3 > Namespaces< / h3 >
< ul >
< li class = "menuGroup-item active" >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.html" > Opencart< / a >
2024-03-04 22:57:28 +08:00
< ul >
< li class = "menuGroup-item" >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.Admin.html" > Admin< / a >
2024-03-04 22:57:28 +08:00
< / li >
< li class = "menuGroup-item" >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.Catalog.html" > Catalog< / a >
2024-03-04 22:57:28 +08:00
< / li >
< li class = "menuGroup-item active" >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.System.html" > System< / a >
2024-03-04 22:57:28 +08:00
< ul >
< li class = "menuGroup-item" >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.System.Engine.html" > Engine< / a >
2024-03-04 22:57:28 +08:00
< / li >
< li class = "menuGroup-item" >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.System.Helper.html" > Helper< / a >
2024-03-04 22:57:28 +08:00
< / li >
< li class = "menuGroup-item active" >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.html" > Library< / a >
2024-03-04 22:57:28 +08:00
< ul >
< li class = "menuGroup-item" >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.Cache.html" > Cache< / a >
2024-03-04 22:57:28 +08:00
< / li >
< li class = "menuGroup-item" >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.Cart.html" > Cart< / a >
2024-03-04 22:57:28 +08:00
< / li >
< li class = "menuGroup-item" >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.DB.html" > DB< / a >
2024-03-04 22:57:28 +08:00
< / li >
< li class = "menuGroup-item" >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.Mail.html" > Mail< / a >
2024-03-04 22:57:28 +08:00
< / li >
< li class = "menuGroup-item" >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.Session.html" > Session< / a >
2024-03-04 22:57:28 +08:00
< / li >
< li class = "menuGroup-item" >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.Template.html" > Template< / a >
2024-03-04 22:57:28 +08:00
< / li >
< / ul >
< / li >
< / ul >
< / li >
< / ul >
< / li >
< li class = "menuGroup-item" >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/namespace-none.html" > none< / a >
2024-03-04 22:57:28 +08:00
< / li >
< / ul >
< / div >
< div class = "menu-section" >
< h3 > Classes< / h3 >
< ul >
< li >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/Opencart.System.Library.Cache.html" >
2024-03-04 22:57:28 +08:00
Cache
< / a >
< / li >
< li >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/Opencart.System.Library.DB.html" >
2024-03-04 22:57:28 +08:00
DB
< / a >
< / li >
< li >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/Opencart.System.Library.Document.html" >
2024-03-04 22:57:28 +08:00
Document
< / a >
< / li >
< li >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/Opencart.System.Library.Image.html" >
2024-03-04 22:57:28 +08:00
Image
< / a >
< / li >
< li >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/Opencart.System.Library.Language.html" >
2024-03-04 22:57:28 +08:00
Language
< / a >
< / li >
< li >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/Opencart.System.Library.Log.html" >
2024-03-04 22:57:28 +08:00
Log
< / a >
< / li >
< li >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/Opencart.System.Library.Mail.html" >
2024-03-04 22:57:28 +08:00
Mail
< / a >
< / li >
< li >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/Opencart.System.Library.Request.html" >
2024-03-04 22:57:28 +08:00
Request
< / a >
< / li >
< li >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/Opencart.System.Library.Response.html" >
2024-03-04 22:57:28 +08:00
Response
< / a >
< / li >
< li class = "active" >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/Opencart.System.Library.Session.html" >
2024-03-04 22:57:28 +08:00
Session
< / a >
< / li >
< li >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/Opencart.System.Library.Template.html" >
2024-03-04 22:57:28 +08:00
Template
< / a >
< / li >
< li >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/Opencart.System.Library.Url.html" >
2024-03-04 22:57:28 +08:00
Url
< / a >
< / li >
< / ul >
< / div >
< / div >
< / div >
< div class = "layout-main" >
< div class = "layout-navbar" >
< nav class = "navbar" >
< div class = "navbar-left" >
< ul class = "navbar-links" >
< li >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/index.html" > Overview< / a >
2024-03-04 22:57:28 +08:00
< / li >
< li >
2024-03-04 23:29:14 +08:00
< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.html" > Namespace< / a >
2024-03-04 22:57:28 +08:00
< / li >
2024-03-04 23:29:14 +08:00
< li class = "active" > < a href = "http://localhost\opencart-master/docs/api/Opencart.System.Library.Session.html" > Class< / a > < / li > < li >
< a href = "http://localhost\opencart-master/docs/api/tree.html" > Tree< / a >
2024-03-04 22:57:28 +08:00
< / li >
< / ul >
< / div >
< div class = "navbar-right" >
2024-03-04 23:29:14 +08:00
< div class = "search" data-elements = "http://localhost\opencart-master/docs/api/assets/elements.js" >
2024-03-04 22:57:28 +08:00
< input class = "search-input" placeholder = "Search class, function or namespace" autofocus >
< ul class = "search-results" > < / ul >
< / div >
< / div >
< / nav >
< / div >
< div class = "layout-content" >
< h1 >
2024-03-04 23:29:14 +08:00
Class < a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.html" > Opencart< / a > \< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.System.html" > System< / a > \< a href = "http://localhost\opencart-master/docs/api/namespace-Opencart.System.Library.html" > Library< / a > \< a href = "http://localhost\opencart-master/docs/api/Opencart.System.Library.Session.html" > Session< / a >
2024-03-04 22:57:28 +08:00
< / h1 >
< table class = "classLikeSignatureTable" >
< / table >
< div class = "classLikeDescription" >
< div class = "description" > < p > Class Session< / p >
< / div >
< / div >
< div class = "classLikeSection" >
2024-03-04 23:29:14 +08:00
< b > Located at< / b > < a href = "http://localhost\opencart-master/docs/api/source-system.library.session.html#15" title = "Go to source code" > system\library\session.php< / a > < br >
2024-03-04 22:57:28 +08:00
< / div >
< table class = "table" id = "methods" >
< tr >
< th class = "table-heading sortable" colspan = "3" title = "Switch between natural and alphabetical order" > Methods< / th >
< / tr >
< tr class = "expandable collapsed" data-order = "__construct" id = "___construct" >
< td class = "table-cell table-shrink" >
< code class = "nowrap" >
public
< / code >
< / td >
< td class = "table-cell" >
2024-03-04 23:29:14 +08:00
< code > < a href = "http://localhost\opencart-master/docs/api/source-system.library.session.html#29-45" title = "Go to source code" > __construct< / a > (< span > string < var > $adaptor< / var > < / span > , < span > < a href = "http://localhost\opencart-master/docs/api/Opencart.System.Engine.Registry.html" > < span title = "Opencart\System\Engine\Registry" > Registry< / span > < / a > < var > $registry< / var > < / span > )< / code >
2024-03-04 22:57:28 +08:00
< div class = "expandable-collapsedView" >
< p > Constructor< / p >
< / div >
< div class = "expandable-expandedView" >
< div class = "description" > < p > Constructor< / p >
< / div >
< / div >
< / td >
< td class = "table-anchor" >
< a href = "#___construct" > #< / a >
< / td >
< / tr >
< tr class = "expandable collapsed" data-order = "getId" id = "_getId" >
< td class = "table-cell table-shrink" >
< code class = "nowrap" >
public
< / code >
< / td >
< td class = "table-cell" >
2024-03-04 23:29:14 +08:00
< code > < a href = "http://localhost\opencart-master/docs/api/source-system.library.session.html#47-54" title = "Go to source code" > getId< / a > (): string< / code >
2024-03-04 22:57:28 +08:00
< div class = "expandable-collapsedView" >
< p > Get Session ID< / p >
< / div >
< div class = "expandable-expandedView" >
< div class = "description" > < p > Get Session ID< / p >
< / div >
< / div >
< / td >
< td class = "table-anchor" >
< a href = "#_getId" > #< / a >
< / td >
< / tr >
< tr class = "expandable collapsed" data-order = "start" id = "_start" >
< td class = "table-cell table-shrink" >
< code class = "nowrap" >
public
< / code >
< / td >
< td class = "table-cell" >
2024-03-04 23:29:14 +08:00
< code > < a href = "http://localhost\opencart-master/docs/api/source-system.library.session.html#56-83" title = "Go to source code" > start< / a > (< span > string < var > $session_id< / var > = < span class = "php-str" > ''< / span > < / span > ): string< / code >
2024-03-04 22:57:28 +08:00
< div class = "expandable-collapsedView" >
< p > Start Starts a session.< / p >
< / div >
< div class = "expandable-expandedView" >
< div class = "description" > < p > Start Starts a session.< / p >
< / div >
< h4 > Returns< / h4 >
< div > < p > returns the current session ID< / p >
< / div >
< / div >
< / td >
< td class = "table-anchor" >
< a href = "#_start" > #< / a >
< / td >
< / tr >
< tr class = "expandable collapsed" data-order = "close" id = "_close" >
< td class = "table-cell table-shrink" >
< code class = "nowrap" >
public
< / code >
< / td >
< td class = "table-cell" >
2024-03-04 23:29:14 +08:00
< code > < a href = "http://localhost\opencart-master/docs/api/source-system.library.session.html#85-94" title = "Go to source code" > close< / a > (): void< / code >
2024-03-04 22:57:28 +08:00
< div class = "expandable-collapsedView" >
< p > Close Writes the session data to storage< / p >
< / div >
< div class = "expandable-expandedView" >
< div class = "description" > < p > Close Writes the session data to storage< / p >
< / div >
< / div >
< / td >
< td class = "table-anchor" >
< a href = "#_close" > #< / a >
< / td >
< / tr >
< tr class = "expandable collapsed" data-order = "destroy" id = "_destroy" >
< td class = "table-cell table-shrink" >
< code class = "nowrap" >
public
< / code >
< / td >
< td class = "table-cell" >
2024-03-04 23:29:14 +08:00
< code > < a href = "http://localhost\opencart-master/docs/api/source-system.library.session.html#96-107" title = "Go to source code" > destroy< / a > (): void< / code >
2024-03-04 22:57:28 +08:00
< div class = "expandable-collapsedView" >
< p > Destroy Deletes the current session from storage< / p >
< / div >
< div class = "expandable-expandedView" >
< div class = "description" > < p > Destroy Deletes the current session from storage< / p >
< / div >
< / div >
< / td >
< td class = "table-anchor" >
< a href = "#_destroy" > #< / a >
< / td >
< / tr >
< tr class = "expandable collapsed" data-order = "gc" id = "_gc" >
< td class = "table-cell table-shrink" >
< code class = "nowrap" >
public
< / code >
< / td >
< td class = "table-cell" >
2024-03-04 23:29:14 +08:00
< code > < a href = "http://localhost\opencart-master/docs/api/source-system.library.session.html#109-118" title = "Go to source code" > gc< / a > (): void< / code >
2024-03-04 22:57:28 +08:00
< div class = "expandable-collapsedView" >
< p > GC Garbage Collection< / p >
< / div >
< div class = "expandable-expandedView" >
< div class = "description" > < p > GC Garbage Collection< / p >
< / div >
< / div >
< / td >
< td class = "table-anchor" >
< a href = "#_gc" > #< / a >
< / td >
< / tr >
< / table >
< table class = "table" id = "properties" >
< tr >
< th class = "table-heading sortable" colspan = "4" title = "Switch between natural and alphabetical order" > Properties< / th >
< / tr >
< tr class = "expandable collapsed" data-order = "adaptor" id = "$adaptor" >
< td class = "table-cell table-shrink" >
< code class = "nowrap" >
protected
< / code >
< / td >
< td class = "table-cell table-shrink" >
< code class = "nowrap" > object< / code >
< / td >
< td class = "table-cell" >
2024-03-04 23:29:14 +08:00
< code > < var > < a href = "http://localhost\opencart-master/docs/api/source-system.library.session.html#16-19" title = "Go to source code" > $adaptor< / a > < / var > < / code >
2024-03-04 22:57:28 +08:00
< div class = "expandable-expandedView" >
< / div >
< / td >
< td class = "table-anchor" >
< a href = "#$adaptor" > #< / a >
< / td >
< / tr >
< tr class = "expandable collapsed" data-order = "session_id" id = "$session_id" >
< td class = "table-cell table-shrink" >
< code class = "nowrap" >
protected
< / code >
< / td >
< td class = "table-cell table-shrink" >
< code class = "nowrap" > string< / code >
< / td >
< td class = "table-cell" >
2024-03-04 23:29:14 +08:00
< code > < var > < a href = "http://localhost\opencart-master/docs/api/source-system.library.session.html#20-23" title = "Go to source code" > $session_id< / a > < / var > < / code >
2024-03-04 22:57:28 +08:00
< div class = "expandable-expandedView" >
< / div >
< / td >
< td class = "table-anchor" >
< a href = "#$session_id" > #< / a >
< / td >
< / tr >
< tr class = "expandable collapsed" data-order = "data" id = "$data" >
< td class = "table-cell table-shrink" >
< code class = "nowrap" >
public
< / code >
< / td >
< td class = "table-cell table-shrink" >
< code class = "nowrap" > array< mixed> < / code >
< / td >
< td class = "table-cell" >
2024-03-04 23:29:14 +08:00
< code > < var > < a href = "http://localhost\opencart-master/docs/api/source-system.library.session.html#24-27" title = "Go to source code" > $data< / a > < / var > = []< / code >
2024-03-04 22:57:28 +08:00
< div class = "expandable-expandedView" >
< / div >
< / td >
< td class = "table-anchor" >
< a href = "#$data" > #< / a >
< / td >
< / tr >
< / table >
< / div >
< div class = "layout-footer" >
OpenCart API API documentation generated by < a href = "https://www.apigen.org" > ApiGen dev-master< / a >
< / div >
< / div >
< div class = "layout-rest" >
< div class = "navbar" > < / div >
< / div >
< / body >
< / html >