Re: [PHP] SESSION expiry time setting

2005-11-18 Thread Chris Shiflett

Angelo Zanetti wrote:

I've been searching for where the time is set for a session to
expire but had little luck.


I think you might be looking for the session.gc_* directives. These 
control the session mechanism's garbage collection.


Hope that helps.

Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] SESSION expiry time setting

2005-11-18 Thread David Grant
Hi Angelo,

You might want:

session.cookie_lifetime = 

Obviously this only has an effect if the session.use_cookies directive
is set to "1".

Cheers,

David Grant

Angelo Zanetti wrote:
> Hi guys.
> 
> I've been searching for where the time is set for a session to expire
> but had little luck.
> 
> in the PHP.ini file I found:
> 
> session.cache_expire
> 
> which specifies the time in minutes but is this what sets the session to
> timeout once the setting time has been surpassed?
> 
> Or am I looking in the totally wrong direction??
> 
> thanks in advance.
> 
> Angelo
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Session expiry issues in IE, still.

2004-01-05 Thread Chris Shiflett
Hi Tarrant,

--- Tarrant Costelloe <[EMAIL PROTECTED]> wrote:
> I wrote to the list a couple of days ago about issues Planet-Tolkien.com
> members were experiencing with Internet Explorer, where their PHP based
> $_SESSION seemed to be expiring very speradically, where as Mozilla and
> Opera browsers this issue was not occuring and they would stay
> logged-in.

[snip]

> Just curious, but could it be something to do with the use of
> mod_rewrite?

I doubt it, but it's possible (session information passed in the URL and
stripped out, perhaps).

I would recommend trying to replicate this behavior in an isolated
application that only performs session functions and outputs diagnostic
information. If you can replicate the errant behavior in a small sample
script, it will also give you something helpful to post to the list (e.g.,
this code does this bad thing).

Debugging session problems can be difficult, because there is a lot going
on. If IE is losing the session, can you check to see whether it is due to
a lack of a session identifier? The fault is likely with IE, but you must
identify the fault before you can work around it. Off the top of my head,
I can recall IE having trouble with protocol-level redirects (e.g.,
header('Location: ...')), a lack of P3P compliance (only for third-party
cookies, though, I think), and that's all I can think of at the moment.

Hope that helps. Give us a small example script if you can that
demonstrates the problem.

Chris

=
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
 Coming mid-2004
HTTP Developer's Handbook
 http://httphandbook.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] session expiry

2002-05-01 Thread John Holmes

That's not what a session if for. You'll have to set your own cookie to
remember who the person is, and start a new session for them when they
return.

---John Holmes...

> -Original Message-
> From: Justin French [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01, 2002 4:58 AM
> To: php
> Subject: [PHP] session expiry
> 
> Hi all,
> 
> I'm a little confused after reading some of the user notes on the
session
> pages in the manual.
> 
> I have a perfectly functioning script which i'm happy with which is
> managing
> all my sessions.  However, the sessions ends when the browser is
closed
> (or
> they log out).
> 
> I wish to modify the login form so that they can say "remember me" or
> "don't
> remember me" pull-down.
> 
> So, I need to know what to do in my session to have the session cookie
> last
> longer (say 30 days???).
> 
> I thought it might be something like:
> 
>  $expireTime = 60*60*24*30; // 30 days
> session_set_cookie_params($expireTime);
> session_start();
> ?>
> 
> or (last two lines swapped):
> 
>  $expireTime = 60*60*24*30; // 30 days
> session_start();
> session_set_cookie_params($expireTime);
> ?>
> 
> But it doesn't seem to be working.  Any ideas?
> 
> 
> Justin French
> 
> Creative Director
> http://Indent.com.au
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php