I'm dealing with passwords so security is critical.
Here's the flow...
I want to periodically update a user's screen with data I am fetching.
I would use a jquery function and call a smaller php file upon success, but I don't want to pass the user's password in a POST function.
I am assuming that if I call a jquery function from within the PHP function periodically, that would eliminate the issue of passing a password using the post function to php.
Reason I'm passing a password is that I'm using IMAP and have to use a user's password in order to retrieve emails.
Current flow (non secure) 1.) Pass username and password using javascript into PHP function using jquery AJAX and POST variable. My assumption is that this is not secure.
What's the secure solution?