You are here

function fb_connect_session_end_cb in Drupal for Facebook 6.2

1 string reference to 'fb_connect_session_end_cb'
fb_connect_menu in ./fb_connect.module
Implementation of hook_menu().

File

./fb_connect.module, line 101
Support for Facebook Connect features

Code

function fb_connect_session_end_cb() {
  global $user;
  if (fb_verbose() == 'extreme') {
    watchdog('fb_connect', t("fb_connect_session_end_cb, session_name is " . session_name() . ", session_id is " . session_id()));
  }
  session_destroy();

  // When user logs out of connect, give them a new session.
  $user = drupal_anonymous_user();
  drupal_json(TRUE);
  exit;
}