Jump to content

Relying on redirection?


sorenchr

Recommended Posts

Hi

 

I am currently developing a portal system. When a user is logged in to the system, a number of checks are made on every secure page, making sure that the user is logged in. The checkStatus file, as i've called it, is designed to redirect the user to the logout page (which initiates a logout by itself) when anything seems out of order. The redirection occurs via the Header() function in PHP.

 

So my question is, will a malicious user be able to stop the redirection? Is there a way to make your browser deny redirection?

 

I should add, that i've already taken the precaution of putting an "exit" function, after each redirection.

Link to comment
https://forums.phpfreaks.com/topic/138597-relying-on-redirection/
Share on other sites

I wouldn't think it'd be possible to stop a re-direction as it happens server-side, so the user shouldn't be able to control it. Also, the exit would stop them if they did manage to stop the re-direction, but I think you should be safe that it will redirect them.

I wouldn't think it'd be possible to stop a re-direction as it happens server-side, so the user shouldn't be able to control it. Also, the exit would stop them if they did manage to stop the re-direction, but I think you should be safe that it will redirect them.

 

Alright, thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.