
Ok, so today I installed my little login / registration script that I have used on at least 25 hosting providers to a Network Solutions server. The script is written in php and it uses sessions to validate users as they navigate from page to page. Anyway, I have never had an issue with it before and it kept losing the session. After a little research I verified that the session.save_path in the php.ini was set to nothing! I edited it to the path for the hosting account and created a tmp directory in the hosting accounts directory structure to hold the session variables. Issue resolved.
session.save_path = /data/##/#/###/###/####/user/######/htdocs/tmp
Thanks Network Solutions for being the only host that makes things harder than they have to be! Of course, replace the #’s with your account info. If you don’t know what your path is you can get it using php basepath as follows:
<?php echo basepath('.'); ?>
Well, I hope this was helpful and saved you some time.





3 Responses
Thanks for the post. I was having an issue with a CMS written in PHP that is hosted on a NS unix share and session was just not being kept properly. I found your page as well as others about the save_path setting needing to be changed on NS hosts. Check out http://www.networksolutions.com/support/php-ini-for-unix-shared-hosting-faq/ and it mentions using a different save_path that is shorter and doesn’t requiring putting it under htdocs. Not sure if it helps you out or not, but I thought I’d reply.
Wow! Someone read this! Ha. You are my first reader that wasn’t spam! Anyway, thanks for the tip on the shorter directory that is not in the htdocs!
think this saved my life. you’re a rock-star.
thank you.