I have been searching to find out if it would be better to redirect a user loggin into a website on the client or server side. From my research i see that it is better to rely on to the server side.
I have a JS script that will use Jquery to post data to a php script to check the users login details, if they're find it tells the JS to redirect. This worked okay but now i want to redirect using the PHP script but the script won't redirect when i us $.post() method.
So the question is, how do i redirect the use this way? I'm trying to build this system so it's independent on the user having JS turned on in their browser so any help and tips would be very welcome.
Thanks.