like you said, I use the database session,It get a good result, but only in subdomain( http://sub.mysite.com ) ,It is get a good result, in domain( http://mysite.com ),It can't been use still, the 2 domain used the same DocumentRoot , same VirtualHost setting.
I saw the phpinfo() about the 2 domain. the only one different is HTTP_COOKIE's order is different. any one know why is it [the same DocumentRoot, different domain, the main domain can't be get a good result(don't use the cookie)] by the way i have uncomment the [Configure::write('Cache.disable', true);] Thanks 2009/2/4 Esoteric <erik.kristen...@gmail.com> > > First http://book.cakephp.org/view/172/Authentication has the perfect > example of how to just get login working, though I think you were > saying you have that working. > > Next, use the session component instead of interacting with php build > in session functions this allows everything to stay in cakephp scope > essentially and it is easier to work with because it does all the > session stuff for you. > > Also, you can modify cakephp to use a database to store sessions > instead of cookies, change this in config/core.php > > Finally, stop modifying the cakephp core, its not going to get you > anywhere, read the book.cakephp.org. > > -Erik > > On Feb 4, 1:05 am, Rimoe <meiyo...@gmail.com> wrote: > > Yes, when login , I have no use the Auth->login(),but when add user, i > must > > use the Auth->login(), > > > > my php version is php4.3 > > when I set ['session.use_cookies', 0 ] in session.php, > > > > I can't log in. > > > > Thanks for your answer. > > by the way, dou you know why is it I can't change the value of > > session.use_cookies > > > > Thanks > > > > 2009/2/4 Miles J <mileswjohn...@gmail.com> > > > > > > > > > > > > > You do not use Auth->login(), its automatic. > > > > >http://www.milesj.me/blog/read/5/using-cakephps-auth-component- Hide > quoted text - > > > > - Show quoted text - > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---