Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Jovial1718ywell .. i'm still a newbie to the backend development ... and I still use similar code ... what's so weird about it btw??
-
crisz81918y@Jovial PHP generated a javascript snippet for redirect, when PHP is already able to perform redirect alome.
The problem is that if a user has javascript disabled, he or she will see only a blank page -
Jovial1718yOhh sorry.. I missed the point ... I thought their b something wrong with the "Logged In" conditions 😂 ... Thanks @crisz
-
AdeE3767yHe is legend , he silly mistakes brought smile on others face ✌
Be like him
be a silly developer 😂 -
palonE2457yYou cant use Header(Loaction: ); when you already have printed stuff to the Frontend.
Thus this method is usable. Shouldve added an "If your browser doesnt redirect you click here" -
buonzz236y"another developer" - are you sure it is not you 6 months ago when your boss is breathing down in your neck?
-
Norielle5076yI also found that shitty redirection method on one of codecanyon php script that I've tested lol.
-
Norielle5076y@Jovial you are basically telling php to render and use excess resource before redirecting and also this will be a problem if js is turned off lol
Related Rants
I am working on another developer's PHP code, and I found a new way that he done the redirect after the login with PHP!
undefined
php
redirect