[FX.php List] Leave and come back to same session?

Andrew Denman adenman at tmea.org
Fri Oct 26 12:56:53 MDT 2007


Jonathan,

There are a couple of PHP.ini session settings that affect session length
that you can check on: http://us3.php.net/manual/en/ref.session.php

session.cookie_lifetime is set to '0' by default which will make it survive
till the browser closes.  If this is set to anything else the user's cookie
will expire in that number of seconds and effectively end their session.
This setting probably won't be the problem.

session.gc_maxlifetime is set to '1440' by default (30 min).  This value
determines at what age a session can be automatically cleaned up and
effectively ended.  If your off-site processing takes longer than this
amount of time the session may be expiring before the user gets returned to
your site.

Andrew Denman


-----Original Message-----
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of Jonathan Schwartz
Sent: Friday, October 26, 2007 12:10 PM
To: FX.php Discussion List
Subject: Re: [FX.php List] Leave and come back to same session?

Thanks Bob,

Now that I know that it can be done, I'll dig deeper to figure out 
why my first attempt didn't work.

Thanks,

Jonathan

At 12:05 PM -0500 10/26/07, Bob Patin wrote:
>Jonathan,
>
>So long as you don't close the browser, the session will survive; I 
>have carts that use other sites for their card-processing, and when 
>the card process is complete, the users return to the client site, 
>where the session is waiting for them on their return.
>
>For that matter, you can go to a site, start a session, browse all 
>day on other sites, and return to the original site, and the session 
>is going to still be alive unless it was explicitly destroyed  on 
>the client's site.
>
>Best,
>
>Bob Patin

-- 
Jonathan Schwartz
Exit 445 Group
jonathan at exit445.com
http://www.exit445.com
415-381-1852
_______________________________________________
FX.php_List mailing list
FX.php_List at mail.iviking.org
http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list