As in:
Code: Select all
If visitor_is_from_login.php
redirect_to_index.php
Else
redirect_to_login.php
...Moderator: General Moderators
Code: Select all
If visitor_is_from_login.php
redirect_to_index.php
Else
redirect_to_login.php
...Yes you are right.jeffimperial wrote:Thank you for that.. I applied what you suggested and it's working niceley.. however, the first problem still persists. Typing into my Web browser's address bar http://www.test.com/profile.php has the same effect as putting in the right password into login.php... I mean, what I want to happen is that only people referred by login.php can have access to the page. Say, if the person isn't jumping from login.php and tries to access profile.php directly, then that person needs to be redirected to login.php.. I'm not sure if this is making any sense yet.
jeffimperial wrote:Wow, I'm amazed at how this community thing works! Though my realizations from this Forum has led me to the conclusion that I badly needed to remake the login system, it wasn't as difficult as it should have been. Hehe!
Thank you. For sure, I'll be back again to ask for help. Again, thank you guys..