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
-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
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,
3 matches
Mail list logo