hey Royce, I think this is more of a generic PHP question rather than something specific to CakePHP.
You're best bet to start with might be: http://nz2.php.net/manual/en/features.cookies.php http://nz2.php.net/manual/en/function.setcookie.php There should be some code examples on these screens. Specific to Cake, I would probably use on of the controller callback functions to check for this cookie prior to any action. Probably a beforeFilter method defined in your app_controller.php. Does this make sense? Cheers, mikee On 28/10/06, royceH <[EMAIL PROTECTED]> wrote: > > Hi all, I'm not sure if this is the correct place for this, but here > goes: > > I am trying to write (with not much luck) a cookie processor that works > as follows. The 1st time someone logs onto my site, I'd like them to > select a sub site they want to be associated with. The subsite would > be a sub-domain. From then on, when the person logs on, the cookie > would be read and the person would be redirected to the sub-domain > automatically. > > It seems simple enough, but I have trouble getting started. Any help > or direction is appreciated. > > I'm a beginning programmer, so program code would be most appreciated. > Its an Linux Apache, PHP, MySQL environment. > > Thanks. > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
