I can't login
I have installed PowerCMS and the username and password is correct. it keeps bringing me back to the login page once I've entered my login correctly.
What is going on?
I have installed PowerCMS and the username and password is correct. it keeps bringing me back to the login page once I've entered my login correctly.
What is going on?
the first thing to look into is the server session management.
upload the sessionTest.php page from the following thread:
showpost.php?p=23826&postcount=2
if the session test fails, you will need to contact the host to have them fix the issue.
OK. I did that. I hope they can help me.
They gave me this test page: test.php
The test page you all gave me to upload is still saying "NULL" as a result.
Can you help me?
MY CONVERSATION WITH POWWEB:
"John (Me): why would this page still come up NULL? sessionTest.php
Stephen Jenkins (Powweb/HOST): Yes. It is show as NULL. However, the session is working fine in your account. Hence, please try to install the CMS and check how it works."
in the phpinfo page, I see the following which will cause an issue:
session.cookie_domain biblelogosthegame.com biblelogosthegame.com
session.save_path /home/users/web/b2756/pow.biblelogos/htdocs/cgi-bin/tmp /home/users/web/b2756/pow.biblelogos/htdocs/cgi-bin/tmp
the session cookie domain should be:
www.thegreaterharvest.org
I see what you're saying. Its a shared hosting plan that lets you upload as many domains as you like under the same plan. biblelogosthegame.com was the first domain on that hosting plan. I will change it and see if it works. Will I need to reinstall the PowerCMS once I do this?
I don't think that is it either though.
If i access the sessionTest.php page at:
sessionTest.php
it still doesn't test successfully. You will really need to push on the host to fix the issue.
the session test page works like this:
There is an if statement at the top of the page to set a session variable if the querystring variable test is equal to test
<?php
if (!session_id()) session_start();
if ((isset($_GET['test']) && $_GET['test'] != "")) {
$_SESSION["test"] = "test";
}
?>
The first link has the querystring variable to set the session:
<a href="<?php echo((isset($_SERVER["PHP_SELF"]))?$_SERVER["PHP_SELF"]:"") ?>?test=test">Click here to Set Session variables</a>
the second link just reloads the page:
<a href="<?php echo((isset($_SERVER["PHP_SELF"]))?$_SERVER["PHP_SELF"]:"") ?>">Click here to test session variables</a>
if sessions where set properly on your server, the session variable would not lose it's values when the page reloads.
The phpinfo page doesn't prove anything except that there are php.ini settings that _should_ enable session management.
The code on the sessionTest.php page proves that session management is not functioning properly.
The facts are:
1) When a session is started, the session ID should not change.
2) The session id is changing every time the sessionTest.php is loaded. This is not correct behavior.
2) A session variable should maintain state until the browser is closed.
3) The Session being set by the sessionTest.php page is not maintaining state correctly
This is so aggravating. I am going to try them one more time. I told them to follow this post because I didn't think they fixed it because when I tested it, it still came up NULL.
Is there anything specifically, like specific wording, I need to share with them?
they should be able to take a look at the sessionTest.php code and see that there is a problem.
the sessionTest.php page is a very basic page for setting session variables. there is nothing at all fancy going on.
It just sets the session if the querystring "test" is set, reloads the page and displays the value of the session variable and the session_id()
Neither the Session Variable or the session ID are behaving properly.
Don't even bring up powerCMS, at this point, PowerCMS is not a factor. Just concentrate on the sessionTest.php page.
It is a very basic PHP page using rudimentary session techniques, and it is not working.
the big red flag is the session id. it changes every single time the page is loaded.
A session id should stay the same for the entire browsing session. It should not change, but it is.
I believe you Jason. Its just when you have deadlines and things like this happen you just catch fire. I wanted this to be a quick solution. I saved it until last and its driving me crazy. Thanks for your help. I am trying work through it.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.