Php session management timeout problem

Hello!
anybody is an expert on php session management? I used to use a simple cookie to create a session (setcookie) until I noticed the session dies very quickly on the iPhone. I now use the “official” session management from php (session_start, etc) which seems to help with the iPhone, but on normal browser the session doesn’t last very long now, so daily user have to log in every day.

I’ve put this into my .htaccess:

php_value session.cookie_lifetime “2629743”
php_value session.gc_maxlifetime “2629743”

To start a new session I use this:


session_set_cookie_params('604800');
session_start(); unset($_SESSION['session_id']);

...

$_SESSION['session_id']=$sid;

Any clues what going on here? Thanks