I realize that there are several posts as to this problem, however after some work I decided to post a fix here that worked for me.
This fixes the virtual servers login issues for admin and saving to session folders which do not write.
I tested this on latest joomla 10.01
first create a folder in your public_html directory called tmp chown-755
create an php.ini file(php.txt document with saved as php.ini)
copy this:
Code:
[PHP]
session.save_path ("/home/your_user/public_html/tmp");
session.cookie_path =
(if you need safe mode off then also insert:)
Code:
ini_set ('safe_mode', '0');
save and upload to same diectory
Open Administration/components/com_admin/admin.admin.html.php
and find :
Code:
<?php echo (($sp=ini_get('session.save_path'))?$sp:'none');
insert after this line:
Code:
session_save_path ('/home/your_user/public_html/tmp');
so it all looks like this:
Code:
<?php echo (($sp=ini_get('session.save_path'))?$sp:'none');
session_save_path ('/home/your_user/public_html/tmp');
session_name( md5( $mosConfig_live_site ) );
session_start();
?>
Next open :
Administartor/index.php
and find:
Code:
session_name( md5( $mosConfig_live_site ) );
and add:
Code:
session_save_path ('/home/your_user/public_html/tmp');
ao it looks like:
Code:
session_name( md5( $mosConfig_live_site ) );
session_save_path ('/home/your user/public_html/tmp');
session_start();
Be sure that session start is the last Line
do the exact same for Administrator/index2.php and for index3.php
Now login and check that sytem tab shows that the sessions TMP folder is in fact there with the path you outlined and is writeable.
To check that it worls correctly check with ftp and look to see if it contains session data.
I was constantly logged out no matter what I did due to phpsuexe installed on server, now I can stay logged in as long as required by using session length in configuration
Hope that helps all like it did for me