API15

JSessionStorageDatabase/destroy: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Destroy the data for a particular session identifier in the SessionHandler backend. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description...
 
m preparing for archive only
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JSessionStorageDatabase/destroy|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>


{{Description:JSessionStorageDatabase/destroy}}
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 46: Line 46:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JSessionStorageDatabase/destroy|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>
{{SeeAlso:JSessionStorageDatabase/destroy}}
<! removed transcluded page call, red link never existed >


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=destroy
  category=destroy
  category=JSessionStorageDatabase
  category=JSessionStorageDatabase
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API15]]

Latest revision as of 01:07, 25 March 2017

Description

Destroy the data for a particular session identifier in the SessionHandler backend.

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax

destroy($id)
Parameter Name Default Value Description
$id $id The session identifier.

Returns

boolean True on success, false otherwise.

Defined in

libraries/joomla/session/storage/database.php

Importing

jimport( 'joomla.session.storage.database' );

Source Body

function destroy($id)
{
        $db =& JFactory::getDBO();
        if(!$db->connected()) {
                return false;
        }

        $session = & JTable::getInstance('session');
        $session->delete($id);
        return true;
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples

Code Examples