PHP Logo

NetSol and session.save_path

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.