clearSession

(since )



clear you APE session

Description


string clearSession ( )

Clear the sessions, remove events, stop all running request, reset your sessid and pubid.

Examples


//ape var is a reference to APE instance
 
//Error 004 is fired when you sent a bad sessid (this can happen if the client experience some connection issue longer than 45sec)
ape.onError('004', function() {
    ape.clearSession(); 
    ape.initialize(ape.options); //Reinitialize APE class
});

User notes


# No comment

Post a note


User notes may be edited or deleted, and usually a note is deleted because of the following reasons:
  • Bugs: Instead report a bug
  • Missing documentation: report that as a bug.
  • Support questions: See the community for available options.

In other words, do not ask questions within the user notes.

Note <b>,<u>,<i> HTML tags are allowed in the posts and the note formatting is preserved. URLs will be turned into clickable links, JavaScipt and C code blocks enclosed in the <source="javascript">JS Code</source> and <source="c">C Code</source> tags will be source highlighted automatically.