Hey guys,
I'm loading an entire Html page (everything, including <html>, <head>, <body> tags) via ajax as follows:
$('#template1').click(function(e)
{
$.ajax({
type: "POST",
url: "getTemplate.php"
}).done(function(msg)
{
var ckeditorInstance = CKEDITOR.instances['htmleditor'];
ckeditorInstance.setData(msg);
});
});
The Html appears fine in the editor after this occurs, however the cookies are deleted inmediately after. In other words, if I refresh the page I appear as if I had logged out of the site.
Any idea why this could be happening?