I hava a strange problem. I'm using jquery $.post()
to send/recieve vars from a PHP
script.
JavaScript:
$("#r_submit").click(function()
{
$.post("http://" + server + "/msws/",
{
action: "register",
sub_action: "register_validate"
},
function(json)
{
json = $.parseJSON(json);
alert(json.cell_is_good);
});
});
PHP:
http://textuploader.com/?p=6&id=S7zDD
Problem:
If I run the code on my pc (WAMP) it works fine, but if I upload it to my server (justhost) then it dosn't keep the session if I alert the session when I create it, it is there, but when I try to get the session later, it's gone, I think it has to do with the fact that the server thinks that the browser was closed, so it destroys the session? Thank you :)