Jump to content

Session lost...


AP81

Recommended Posts

Hi guys,

 

Having a strange problem on our Production server (running Apache/PHP/Postgres).  If you leave a page idle for a while (after being logged in), you end up with a session timing out.  We can't replicate it on our dev our staging servers, only production.

 

We have 5 production servers in our web farm, so we are inspecting them one-by-one to find the problem.  Just wondering whether anyone has any ideas as we haven't got very far.  We pulled one server out the of the farm and ran an strace (see below). 

 

Any pointers?  We haven't changed any Apache/PHP settings recently either.

20:59:57.304232 open("/home/ecom/tmp/auth_8t1sj72ui98k2qnl81f42hgau5", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 129

20:59:57.304374 fstat64(129, {st_dev=makedev(104, 3), st_ino=854283, st_mode=S_IFREG|0664, st_nlink=1, st_uid=30, st_gid=1000, st_blksize=4096, st_blocks=0, 

st_size=0, st_atime=2011/03/30-20:44:57, st_mtime=2011/03/30-20:59:57, st_ctime=2011/03/30-20:59:57}) = 0

20:59:57.304520 lseek(129, 0, SEEK_CUR) = 0

20:59:57.304591 write(129, "O:13:\"Ires_Web_Auth\":9:{s:22:\"\0I"..., 1642) = 1642

20:59:57.304698 close(129)              = 0

20:59:57.304776 chmod("/home/ecom/tmp/auth_8t1sj72ui98k2qnl81f42hgau5", 0664) = 0

20:59:55.929294 lstat64("/home/ecom/lib", {st_dev=makedev(104, 3), st_ino=953750, st_mode=S_IFDIR|0755, st_nlink=31, st_uid=1003, st_gid=1000, st_blksize=409

6, st_blocks=8, st_size=4096, st_atime=2011/03/30-18:49:03, st_mtime=2011/03/25-23:33:26, st_ctime=2011/03/25-23:33:51}) = 0

20:59:55.929539 lstat64("/home/ecom/lib/Sdk", {st_dev=makedev(104, 3), st_ino=953877, st_mode=S_IFDIR|0755, st_nlink=8, st_uid=1003, st_gid=1000, st_blksize=

4096, st_blocks=8, st_size=4096, st_atime=2011/03/30-18:49:03, st_mtime=2011/03/21-16:54:24, st_ctime=2011/03/23-16:08:29}) = 0

20:59:55.929785 lstat64("/home/ecom/lib/Sdk/Util", {st_dev=makedev(104, 3), st_ino=953900, st_mode=S_IFDIR|0755, st_nlink=3, st_uid=1003, st_gid=1000, st_blk

size=4096, st_blocks=8, st_size=4096, st_atime=2011/03/30-18:49:03, st_mtime=2011/03/21-16:54:23, st_ctime=2011/03/23-16:08:29}) = 0

20:59:55.930035 lstat64("/home/ecom/lib/Sdk/Util/Url.php", {st_dev=makedev(104, 3), st_ino=953122, st_mode=S_IFREG|0755, st_nlink=1, st_uid=1003, st_gid=1000

, st_blksize=4096, st_blocks=24, st_size=10515, st_atime=2011/03/30-20:59:55, st_mtime=2011/03/21-16:54:23, st_ctime=2011/03/23-16:08:29}) = 0

20:59:55.930251 open("/home/ecom/lib/Sdk/Util/Url.php", O_RDONLY) = 127

20:59:55.930358 fstat64(127, {st_dev=makedev(104, 3), st_ino=953122, st_mode=S_IFREG|0755, st_nlink=1, st_uid=1003, st_gid=1000, st_blksize=4096, st_blocks=2

4, st_size=10515, st_atime=2011/03/30-20:59:55, st_mtime=2011/03/21-16:54:23, st_ctime=2011/03/23-16:08:29}) = 0

20:59:55.930523 read(127, "<?php\n/**\n * @package Sdk\n * @co"..., 8192) = 8192

20:59:55.931479 read(127, "path>][?<query>][#<fragment>]]\n "..., 8192) = 2323

20:59:55.931669 read(127, "", 8192) = 0

20:59:55.932040 read(127, "", 8192) = 0

20:59:55.932202 close(127)                  = 0

20:59:55.932471 stat64("/home/ecom/www/xxxxx/htdocs/accommodation/Melbourne/The-Hotel-Charsfield-2CHAMEL.html", 0xbfb550dc) = -1 ENOENT (No such file o

r directory)

20:59:55.932691 stat64("/home/ecom/www/xxxxx/htdocs/accommodation/Melbourne/The-Hotel-Charsfield-2CHAMEL.php", 0xbfb5587c) = -1 ENOENT (No such file or

directory)

20:59:55.932904 stat64("/home/ecom/www/xxxxx/htdocs/accommodation/Melbourne/The-Hotel-Charsfield-2CHAMEL.php", 0xbfb5587c) = -1 ENOENT (No such file or

directory)

20:59:55.933239 getcwd("/home/ecom/www/xxxxx/htdocs", 4096) = 34

20:59:55.933427 time(NULL) = 1301482795

 

Link to comment
https://forums.phpfreaks.com/topic/232240-session-lost/
Share on other sites

If you leave a page idle for a while (after being logged in), you end up with a session timing out.  We can't replicate it on our dev our staging servers, only production.

 

that sounds like the expected behaviour :s How long are you leaving it idle for ?

 

The session is meant to time-out after 24 minutes by default

Link to comment
https://forums.phpfreaks.com/topic/232240-session-lost/#findComment-1194977
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.