My web hosting company requires me to change the session save path from the standard /tmp to my own folder in the home directory instead.
I have created a folder called _sessions and put it on my server. They instruct me to put the following in my code:
ini_set("session.save_handler", "files");
session_save_path ("path to _sessions folder");
Problem is I'm not sure where to put this code... I have done a search on all of the files within cubecart and I think there are 6 files that have "session_start();" mentioned. I have put that code, directly above this "sessions_start();". Maybe I am meant to delete something in return...
Before I add the code, when visiting the install home page, I get the message on my browser:
Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: user (path: /tmp) in /clientdata/www/au/xxxxxx/install/index.php on line 30
Is there a way I can change session path to 'files' in one central location. The code that my web host suggests above actually creates a page full of errors - but then again I might be putting it in wrong, may I have to delete something? I'm not a programmer and don't know php unfortunately.
Any clues, greatly appreciated. I am assuming the files involved are:
admin/login.php
admin/logout.php
admin/includes/auth.inc.php
admin/misc.php
includes/sessionStart.inc.php
install/index.php
but if this is wrong, please tell me.
Thanks