Statistics: Posted by eric41 — October 24th, 2010, 5:20 am
<?php
function my_dynamic_sp_access_session ($sp_access_values, $vars)
{
$vars["__refs"]["sp_access_values"] = array (ws_plugin__s2member_encrypt ("sp_time_hours:.:|:.:" . $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["specific_ids"] . ":.:|:.:" . strtotime ("now") . ":.:|:.:" . ($expiration_hours = "72")));
/**/
$vars["__refs"]["cookie"] = implode (":.:|:.:", $vars["__refs"]["sp_access_values"]); /* Implode the access values into a delimited string. */
/**/
setcookie ("s2member_sp_access", $vars["__refs"]["cookie"], time () + 31556926, "/"); /* Updated the session cookie. */
}
add_action ("ws_plugin__s2member_during_sp_access_session", "my_dynamic_sp_access_session", 10, 2);
?>
Statistics: Posted by Jason Caldwell — October 24th, 2010, 5:03 am
Statistics: Posted by eric41 — October 23rd, 2010, 7:48 am