# Early session timeouts on 5.2.3

- Thread: https://externals.io/message/45174
- Original archive: https://news-web.php.net/php.internals/45174
- Started by Bharat Nagwani on 2009-08-01T17:51:59+00:00
- Messages: 5
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #45174 — Bharat Nagwani — 2009-08-01T17:51:59+00:00

URL: https://externals.io/message/45174#45174

Hello,

We are facing early session timeouts in php 5.2.3 on bsd unix. This happens
even more frequently when multiple users are logged in.

Googling I found http://bugs.php.net/bug.php?id=42135
and was wondering if this could the related bug for this problem. If so where
can I get the patch for this bug.

Thanks

---

## #45175 — Rasmus Lerdorf — 2009-08-01T18:00:24+00:00

URL: https://externals.io/message/45174#45175 · In reply to: #45174

Bharat Nagwani wrote:
> Hello,
> 
> We are facing early session timeouts in php 5.2.3 on bsd unix. This happens
> even more frequently when multiple users are logged in.
> 
> Googling I found http://bugs.php.net/bug.php?id=42135
> and was wondering if this could the related bug for this problem. If so where
> can I get the patch for this bug.

Well, PHP 5.2.3 was released May 31, 2007.  That is starting to get
quite dated and as you can see bug 42135 was fixed in July 2007.  It
seems to me your path is pretty clear.

-Rasmus

---

## #45176 — Bharat Nagwani — 2009-08-01T18:06:30+00:00

URL: https://externals.io/message/45174#45176 · In reply to: #45175

Agreed we need an upgrade. But upgrade on a large application (1000+ pages) can be expensive.

#42135  	Second call of `session_start()` causes creation of SID

I would imagine - creation of SID is related with session timeouts.

Also we are using storing session in a cookie. 

I was able to pull up the diff from 
http://svn.php.net/viewvc/php/php-src/trunk/ext/session/session.c?r1=240642&r2=240748

Hopefully this will solve the issue. If anyone has more insight on this please advise.

Thanks
-----Original Message-----
From: Rasmus Lerdorf [mailto:rasmus@lerdorf.com] 
Sent: Saturday, August 01, 2009 11:00 AM
To: Bharat Nagwani
Cc: internals@lists.php.net
Subject: Re: [PHP-DEV] Early session timeouts on 5.2.3

Bharat Nagwani wrote:
> Hello,
> 
> We are facing early session timeouts in php 5.2.3 on bsd unix. This happens
> even more frequently when multiple users are logged in.
> 
> Googling I found http://bugs.php.net/bug.php?id=42135
> and was wondering if this could the related bug for this problem. If so where
> can I get the patch for this bug.

Well, PHP 5.2.3 was released May 31, 2007.  That is starting to get
quite dated and as you can see bug 42135 was fixed in July 2007.  It
seems to me your path is pretty clear.

-Rasmus

---

## #45177 — Rasmus Lerdorf — 2009-08-01T18:34:04+00:00

URL: https://externals.io/message/45174#45177 · In reply to: #45176

Bharat Nagwani wrote:
> Agreed we need an upgrade. But upgrade on a large application (1000+ pages) can be expensive.

Going from 5.2.3 to 5.2.10 shouldn't be expensive at all.  At least no
more so than trying to hand-patch your PHP to a non-standard version.

-Rasmus

---

## #45178 — Rafael Dohms — 2009-08-02T03:15:08+00:00

URL: https://externals.io/message/45174#45178 · In reply to: #45177

Bharat Nagwani wrote:
> > […]
> pages) can be expensive.
>
>
As far as I can remember we had no BC breaks or function changes from 5.2.3
until 5.2.10, you should not have any problem at all to upgrade, on the
contrary, you should gaina  lot in performance and other tweaks.



-- 
Rafael Dohms
PHP Evangelist and Community Leader
http://www.rafaeldohms.com.br
http://www.phpsp.org.br
