The Problem: You enter a correct username and passwod in your Xoops site, and you are taken to the page that confirms "Correct Log In" and thanks you for logging in. You are then re-directed back to the home page, but no administration menu appears, and you are still not logged into the site. As a result you cannot log in to your admin Panel, and you have no permissions or priveliges on the site above that of an anonymous visitor. So what is the solution?
This seems to be a fairly common problem with Xoops judging by the number of hits you get when you run a google search. Unfortunately, there dont seem to be many answers!
I ran into this problem myself and the only solution I found that fixed he problem is as follows:
First of all make sure that your mainfile.php is corect, and the lines 34 and 39 are correctly configured:
line 39
define('XOOPS_ROOT_PATH',
'/home/sites/yoursitename.com/public_html');Line 40:
define('XOOPS_URL', 'http://yoursitename.com');The important bit here is to make sure that if you omit the www., (as in the above example), you omit it on both lines.
Occasionally when setting up a site before DNS has propagated you may find the numercial prefix is in place, (something that looks like 179.40.258.3/yoursitename.com/public_html). This is fine whlst you are setting up a site, but rememebr to remove it hen the DNS has propagated nd he site is about to go live.
Did that fix it?
Probably not... This is the most common answer that you will find to th Xoops log in problem but it didnt do the trick for me.
However this did:
Now open up the file kernel/session.php and find line 80 which will probably look like this:
var $enableRegenerateId = false;
Change the false to true, save the file and load it back up to your server.
I cant guarantee it will work for every log in problem with Xoops but it certainly worked for me!
Good luck.
web design lancashire uk