Since the AuthComponent uses the url parameter to store the "$loginRedirect" url your issue is probably related to the way urls are generally interpreted. Double slashes are usually bad as in / controller//action. AuthComponent runs the url through the normalization routine in Cake where your url is "corrected".
AuthComponent line 627 (recent trunk): Router::normalize($redir); Have you ever looked at how Cake stores the url you are at? debug( $this->params['url']['url'] ); outputs controller/action/param not /controller/action/param I am not sure why. But the result is that you can not use this url directly (in $html->url() for example) since you will end up with a link to: /controller/controller/action/param Running the url through normalization puts the slash there for you. (and any base path you need) /Martin On Apr 3, 5:39 am, John R <[EMAIL PROTECTED]> wrote: > So strange .. when I hit login FROM the subdomain, this is my > $_SESSION: > > Array ( [Config] => Array ( [userAgent] => XXXXXXX [time] => > 1207229748 [rand] => XXXXX [timeout] => 10 ) [Auth] => Array > ( [redirect] =>http://sample.domain.com/contest) ) > > The [redirect] is fine .. > > When I do a successful login and it goes > tohttp://www.domain.com/http:/sample.domain.com/ > , the $_SESSION does not have a [redirect] ... > > GRR?! How is it losing a forward slash along the way? lol --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
