additional evercookie methods added
git-svn-id: https://beef.googlecode.com/svn/trunk@614 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -17,6 +17,12 @@ beef.session = {
|
||||
get_hook_session_id: function() {
|
||||
// check if the browser is already known to the framework
|
||||
var id = this.ec.evercookie_cookie("BEEFHOOK");
|
||||
if (typeof id == 'undefined') {
|
||||
var id = this.ec.evercookie_userdata("BEEFHOOK");
|
||||
}
|
||||
if (typeof id == 'undefined') {
|
||||
var id = this.ec.evercookie_window("BEEFHOOK");
|
||||
}
|
||||
|
||||
// if the browser is not known create a hook session id and set it
|
||||
if (typeof id == 'undefined') {
|
||||
@@ -36,6 +42,8 @@ beef.session = {
|
||||
set_hook_session_id: function(id) {
|
||||
// persist the hook session id
|
||||
this.ec.evercookie_cookie("BEEFHOOK", id);
|
||||
this.ec.evercookie_userdata("BEEFHOOK", id);
|
||||
this.ec.evercookie_window("BEEFHOOK", id);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user