Forums / Cotonti / Support / Changed domain, login no longer possible

tensh
#1 2012-09-20 01:50

Hello;

I changed domain for my site, but I cannot login anymore. What should I do to normally login on new main domain?

Added 3 hours later:

It's quite urgent so please respond. I'm using newest Siena

Added 19 minutes later:

OK, found it out. I had to manually set in the database the cache variables for main url and cookie domain.

This post was edited by Trustmaster (2012-09-20 08:34, 11 years ago)
Trustmaster
#2 2012-09-20 08:39

For those who will need it in future, here is what you should do if you have changed a domain:

  1. Open datas/config.php and change $cfg['mainurl'].
  2. Open phpMyAdmin, change the cookiedomain config in cot_config table: 
    UPDATE `cot_config` SET `config_value` = 'mynewdomain.com' WHERE `config_name` = 'cookiedomain';
  3. In phpMyAdmin, clear the cot_cache table:
    TRUNCATE TABLE `cot_cache`;

     

May the Source be with you!
tensh
#3 2012-09-20 09:30

The funny thing is that in my config settings I didn't have the cookie domain set (there was a blank field) - it was written only in cache :) That's why i was quite confused.

Kingsley
#4 2012-09-20 12:36

huh.. Now I know why my localhost refused to work properly since the 0.9.11 version. THX Trust.. :)