Basically this is a security check that comes with using the medium
level security provided by CakePHP 1.2. By using the medium level
security if Cake finds an external referer URL (Not belonging to the
Cake application's domain) you are taken to the home page without the
session being initialized. Thus the normal execution of a controller
is not carried out.

On Sep 22, 10:56 am, Ammad <[EMAIL PROTECTED]> wrote:
> I have come across an issue in my cakePHP application I have come to
> know that when the referer contains the link of an external site my
> controller actions are not executed at all.
>
> Up on some research I found out that the "referer()" function in the
> cake/libs/controller/controller.php checks the referer url and if
> certain conditions are not fulfilled it is directed to the site's home
> page. No matter what controller/action was called, if the referer is
> of an external site, you are taken to the site root
>
> What I want to do is some how by pass this restriction enforced by the
> "referer()" function or find some work around for this issue.
>
> Awaiting your replies.
>
> Regards,
> Muahmmad Ammad Saleem

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to