.logout()

Previous Next

Logs out.

Returns the 'this' object.

Syntax

.logout( options )

 

options  ::=  {

    page:  page

,   success:  success-function

}

Options is a struct that can have the following items, all of which are optional.

Page is a string that defines the page to jump to or a function to call on success.

Success-function is a function called after the operation has successfully completed. This function is executed on the next page, if such a page is specified.

 

Examples

$.udb.logout();
$.udb.logout({page:'MyGoodbyePage'});
$.udb.logout({success:function(){alert('Goodbye!');}});