Thank you all for your help.
I solved the problem using session_save_path("/some/dir/") in php script.
Just one thing to note: If you set the session save_path in your file using this method or ini_set, then there will not be any automatic garbage collection. You'll have to do that yourself.
But now I have another question.
Every time when I'm using .htaccess file and try to connect to my site I get this message: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
When I put in .htaccess file:
php_value session.save_path "/full/path/to/your/own/tmp/directory"
as you told me, I get the same message and in my error_log I get this message: [Sun Aug 17 12:31:42 2003] [alert] [client 213.240.5.14] /home2/pena/public_html/.htaccess: Invalid command 'php_value', perhaps mis-spelled or defined by a module not included in the server configuration
Looks like your ISP will not allow you to set php values in an .htaccess file.
-- ---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
PHP|Architect: A magazine for PHP Professionals – www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php