I don't know if this will help or not, but I built a simple chat app to play with sessions and ajax. When a user first goes to my controller (/messages/index), it checks to see if the session variable Users.username is set. If it is, it continues on to the rest of the index code; if not, it redirects to my /users/index controller to make them login. At login, it sets the Users.username session variable, then redirects back to /messages/index. I have it set to check this every time anything happens.
I don't have the code with me (it's on my work laptop), but I can post it if you're interested. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
