hi!
im receiving these error messages
Fatal error: Failed to initialize session module in /www/clientweb/au/j/jetsafe.com.au/adminlogin.php on line 2
Warning: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
im not printing code as i know i have missed something completely
my code works on the local apache server
the errors only come up with this function
session_start();
but obviously i need it!
any suggestions would be appreciatedthen in your php.ini file you have the path to session.save_path wrong.If anyone else has had this problem I have found an answer. See below.
From our web hosting provider:
-----------------------------------
It appears that you are trying to use file based session handling
(/tmp)according to the error you are receiving.
It is not possible to use file based sessions with PHP in our servers,
as we have load balancing. You will need to use a database session
handler instead, which you can find at <!-- m --><a class="postlink" href="http://www.phpbuilder.com/">http://www.phpbuilder.com/</a><!-- m -->
-------------------------------------
And a google for database session handlers directed us to:
<!-- m --><a class="postlink" href="http://www.phpbuilder.com/columns/ying20000602.php3">http://www.phpbuilder.com/columns/ying20000602.php3</a><!-- m -->
Read the article and Download the ying20000602.zip file and follow the instructions within. Hope that helps others when they encounter this problem.
that is the first host I seen where you can't use session normally. geez what a pain. they would rather clutter up the db then a filesystem that cleans itself.i was actually wondering if people found this to be a common occurence or should we (there are two phppixels) use another host for our bigger website which is nearly complete and runs very much on session variables?
on that... anyone know any really good php enabled hosts in Australia that they would recommend?in addition.. is it recommended to use session variables only for security?no, you do not have to use them just for security, there is no recommendation for it. you can use them for anything you like. use them to keep login information, stuff like that. nothing to do with security.
im receiving these error messages
Fatal error: Failed to initialize session module in /www/clientweb/au/j/jetsafe.com.au/adminlogin.php on line 2
Warning: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0
im not printing code as i know i have missed something completely
my code works on the local apache server
the errors only come up with this function
session_start();
but obviously i need it!
any suggestions would be appreciatedthen in your php.ini file you have the path to session.save_path wrong.If anyone else has had this problem I have found an answer. See below.
From our web hosting provider:
-----------------------------------
It appears that you are trying to use file based session handling
(/tmp)according to the error you are receiving.
It is not possible to use file based sessions with PHP in our servers,
as we have load balancing. You will need to use a database session
handler instead, which you can find at <!-- m --><a class="postlink" href="http://www.phpbuilder.com/">http://www.phpbuilder.com/</a><!-- m -->
-------------------------------------
And a google for database session handlers directed us to:
<!-- m --><a class="postlink" href="http://www.phpbuilder.com/columns/ying20000602.php3">http://www.phpbuilder.com/columns/ying20000602.php3</a><!-- m -->
Read the article and Download the ying20000602.zip file and follow the instructions within. Hope that helps others when they encounter this problem.
that is the first host I seen where you can't use session normally. geez what a pain. they would rather clutter up the db then a filesystem that cleans itself.i was actually wondering if people found this to be a common occurence or should we (there are two phppixels) use another host for our bigger website which is nearly complete and runs very much on session variables?
on that... anyone know any really good php enabled hosts in Australia that they would recommend?in addition.. is it recommended to use session variables only for security?no, you do not have to use them just for security, there is no recommendation for it. you can use them for anything you like. use them to keep login information, stuff like that. nothing to do with security.