Jump to content
UBot Underground

Dropping Cookies


Recommended Posts

Hi all,

If I created a bot that would ultimately end on a page rhrough an affilaite link is it correct to assume that the cookie has been dropped to the users default browser or is it simply confined to the ubot browser?

 

I like the idea of dropping a cookie from within the browser of ubot, but if it stays there then I'm relying on the user to purchase/signup from WITHIN the browser - something I doubt many would do.

 

Any experiences?

 

Thanks

Link to post
Share on other sites

Cookies in UBot Studio are not shared with other browsers. You would have to set the cookie in whichever browser the person normally uses (firefox, IE, chrome, etc).

 

Hope that helps clear that up.

Link to post
Share on other sites

You can possibly do it using JavaScript.

 

Here is a sample function:

setCookie(name, value, expires, path, domain, secure)

 

var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "")
// Actually placing the cookie
document.cookie = curCookie

 

Combined:

function setCookie(name, value, expires, path, domain, secure)
{
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "")
document.cookie = curCookie
}

 

You can do some research on the rest.

 

Hope it helps.

 

Praney

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...