Invalid Session After Uploading to My Domain Online

Good day all,

Please i have been after this issue of not been able to login even as an administrator after i uploaded the generated scripts to my domain online. Every other pages seems to work maybe because its not having anything to do with the database.

I cant seems to register anyone nor login to the site.

During registration ones i get to the upload file it will load and write file not found and under it it says invalid session.

Once i click on login after inserting the username of the administrator and the password it would just reload the page again without any error.

Pls any help on how to fix this?

Note: Everything works perfectly on my local server.

Many Thanks

It seems that PHP session is not properly setup, you may upload a simple script to test:
https://www.php.net/manual/en/session.examples.basic.php
If not working, you should contact your hosting provider.

Enable the Debug mode from “Tools” → “Advanced Settings”, re-generate ewcfg.php file, then re-upload this file to your remote server, and check whether any error messages are displayed.

Thanks, i did what your said and this is the result of the debug from the host site.
Hope to here from you soon. Really appreciate.

0.001536: (mysqli): SET NAMES ‘utf8’. Error: (0)

0.051382: (mysqli): SELECT COUNT(*) FROM userlevels WHERE userlevelid = -2. Error: (0)

0.051514: (mysqli): SELECT userlevelid, userlevelname FROM userlevels. Error: (0)

0.051718: (mysqli): SELECT COUNT(*) FROM userlevelpermissions WHERE userlevelid = -2. Error: (0)

0.051944: (mysqli): SELECT tablename, userlevelid, permission FROM userlevelpermissions WHERE userlevelid IN (-2). Error: (0)

0.052439: (mysqli): SHOW COLUMNS FROM userlevelpermissions LIKE ‘tablename’. Error: (0)

Seems everything is just fine.

beolay2k wrote:

Once i click on login after inserting the username of the administrator and the password
it would just reload the page again without any error.

Try this with Debug mode enabled, and check whether any error message displayed from that Debug message.

I dont know what else to try. i try making a simple project to test and same happened.

Many thanks

arbei wrote:

It seems that PHP session is not properly setup, you may upload a simple script to test:
https://www.php.net/manual/en/session.examples.basic.php
If not working, you should contact your hosting provider.

Did you upload the example scripts in the page above to test PHP session on your server? What is the result?

Did you try to use your site in an iframe or what?