I would like to use the script in ajax website that loads content without refresh.
I understand that login via post data, means simply logging in via the login form, after the user has submitted his login/password successfully.
Since I use a callback function, I cannot use the above procedure for logging in. I want to perform a manual PHP login by passing the login form parameters to a callback function, e.g. as follows:
$login->loginWithPostData($_POST['user_name'], $_POST['user_password'], $_POST['user_rememberme']);
How to manually login?
I would like to use the script in ajax website that loads content without refresh.
I understand that login via post data, means simply logging in via the login form, after the user has submitted his login/password successfully.
Since I use a callback function, I cannot use the above procedure for logging in. I want to perform a manual PHP login by passing the login form parameters to a callback function, e.g. as follows:
How to manually login?