I work with several sites that are hosted by iPower and was having some real trouble with a couple scripts that required the use of sessions. Everything worked great on my test server which runs a similar version of Linux and Apache. For some reason the session information just would not carry over from page to page like it should. After a going over the code again and again, everything looked good, I couldn’t see any problem. So I turned to the Internet to do a little research. That’s when I came across a great article by Tim Chadwick that helped shed some light on my problem.
It seems that iPower changed the way sessions are handled on their servers, but didn’t bother to let anyone know. Don’t get me wrong for the most part iPower has been a good hosting company to work with but their communication system for changes like this is practically nonexistent.
Back to the problem, according to the article and an iPower Knowledgebase article on the subject, you have to set your own path to where session information is temporarily stored. In order to run PHP sessions on iPower, you must add the following line of code to the top of any PHP script that uses sessions:
<?php
session_save_path('/path_to_your_home_dir/dir_to_use_for_session_data');
?>
If possible I would create a specific folder just for the storage of session data and place it somewhere that is not web accessible. In other words outside of the public_html directory on iPower.
this worked perfectly for me. just thought you should know. i saw ipower’s article on it, but thanks to the additional information and link you provided to Tim’s article, i felt confident that it would work.
thanks so much!