True, in which case you can use "save_path" when you create the session object and avoid that issue. That is, if you are allowed to use ini_set(), which you'll need to set any of these options. Or, if you have access to the php.ini then you just set them all there.

 - Tony

On 8/23/2007 2:25 PM, Gunter Sammet wrote:
As a side not to garbage collection: IIRC, if you are on a shared server or
have another app that shares the same session directroy, the application
with the shortest lifetime determines it.
HTH

G.


On 8/23/07, Tony Ford <[EMAIL PROTECTED]> wrote:
  
 It doesn't really matter what you set that to if the entire session
expires. You need to take a look at these settings:

cookie_lifetime
gc_maxlifetime

If cookie lifetime is set to 0 then any session will expire when all
browser windows are closed. If set less than 24 hours, obviously the session
cookie will expire as well.

gc max lifetime can be a little tricky. The session garbage collector goes
out and removes sessions that have not been active for greater than gc max
lifetime. Therefore, if gc max lifetime is set less than 24 hours, a session
has the potential to be removed from the servers before 24 hours. For
instance, let's say gc max life time is set to 4 hours. That means, if I
have a period of inactivity for ~ 4 hours (it depends upon how probability
and divisor are set), even if I haven't closed my browser, the garbage
collector will clean up my session on the server, so my next request will no
longer have a valid session.

 - Tony

On 8/23/2007 10:55 AM, Raul Andres Gomez Quijano wrote:

  // Set Auth Session Expiration to 24 hours
  //
  $objSessionNamespace = new Zend_Session_Namespace( 'Zend_Auth' );
  $objSessionNamespace->setExpirationSeconds( 86400 );

it isnt working, zend auth session expires early...

thanks in advance.


------------------------------
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The sender
therefore does not accept liability for any errors or omissions in the
contents of this message, which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version.


    

  

Reply via email to