[PHP] Secure redirection?

2008-11-05 Thread Zoran Bogdanov
Hi, I'm building a login system with AJAX/PHP/MySQL. I have worked everything out... AJAX is sending request to a php login script (login.php) who if authentication passes initializes the session and sends the header using header(Location : registered_user_area.php); The whole system works

RE: [PHP] Secure redirection?

2008-11-05 Thread Boyd, Todd M.
-Original Message- From: Zoran Bogdanov [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2008 5:42 AM To: php-general@lists.php.net Subject: [PHP] Secure redirection? Hi, I'm building a login system with AJAX/PHP/MySQL. I have worked everything out... AJAX is sending

Re: [PHP] Secure redirection?

2008-11-05 Thread Yeti
I wonder why you redirect the page via php when the browser supports JavaScript Why not let JS do the redirect after the XMLHttpRequest? figurative code .. if (BROWSER DOES NOT SUPPORT JS) header(Location: http://$host$url;); -- PHP General Mailing List (http://www.php.net/) To unsubscribe,