I'm having a problem trying to keep a session when i send a AJAX called to a file in a sub directory. I figured it was a problem with session create intance in the cookie based on the sub directory so i did the Set Cookie Param.
session_set_cookie_params(0, '/', '.domain.com');
window.location.reload(true); // Reloads the window to force the session to show in current page.
It works perfect went i put the CreateAccount in the root directory.. however just for my sanity (OCD Issues) i prefer the CreateAccount to go into /ajax/CreateAccount.php lol
Your ajax call isnt calling for CreateAccount.php ? it's calling for /user_signup.php ...
This topic is now closed. New replies are no longer allowed.