Q:

PhpCAS redirection loop on iframe

I have a request that authenticate with phpCAS and works fine when accessing from url directly (copy past url on browser). 
But When i use the same url in Iframe src or in button href i got infinite redirection loop. 
any ideas ? 
Thanks for help

A:

Am using cakephp and the problème was that the security module checks the referer and inset the session if it's not from the same host so i get disconnected and reconnected again by cas and home page redirection. 
The solution was using custom session handler for cakephp and ignore referer check.