You are here

function protected_node_action_clear_sessions in Protected Node 7

Same name and namespace in other branches
  1. 6 protected_node.settings.inc \protected_node_action_clear_sessions()
  2. 1.0.x protected_node.settings.inc \protected_node_action_clear_sessions()

Clear all the sessions.

This function sets the session variable date to now. Any session that was created before then is then considered out of date and will be ignored.

1 string reference to 'protected_node_action_clear_sessions'
protected_node_admin_settings in ./protected_node.settings.inc
Define the settings form.

File

./protected_node.settings.inc, line 839
Configuration file for the protected_node module.

Code

function protected_node_action_clear_sessions($form, &$form_state) {
  variable_set('protected_node_session_timelimit', REQUEST_TIME);
  drupal_set_message(t('All the Protected Node sessions were cleared.'));
}