Though my research,

if I use the (http://www.mysite.com), I can login very good[ in the status
of have no cookie]
but use the (http://mysite.com),       i cann't login [in the status of have
no cookie.]

the error is user or password is not found











2009/2/5 Rimoe <[email protected]>

>  Hi,
>
> everyone.
>
> when use the  Configure::write('debug', 2);I don't want to print the debug
> info to  the web page,
> I want to print the debug info to other file.
>
> can i do this?
>
> I can't to login use the (auth), anything info can 'echo' to tell me, why
> is it that  can't be login
>
> Thanks
>
>
>
>
> 2009/2/5 Rimoe <[email protected]>
>
> 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 <[email protected]>
>>
>>
>>> 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 <[email protected]> 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 <[email protected]>
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > > 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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to