Admin session timing out after 10-15 seconds

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
johnbmcdonald
Forum Members
Forum Members
Posts: 60
Joined: Mon May 14, 2007 8:01 pm
Location: Edmond, OK, USA

Admin session timing out after 10-15 seconds

Post by johnbmcdonald »

This is maddening...  I can spend about 10 to 15 seconds in the admin interface before I get asked to relogin, and all my changes are lost. If I login, and quickly change just one field and submit the change, it saves, it, Then I have to login again.. this is how I have had to configure everything..

The webhost is network solutions, I've never set up cmsms on their systems before.. Tho, I don't see anything out of the ordinary.

I am not sure where to look next... anybody have any ideas? -Thanks

I found a post here about session timeouts where the user was editing content for long periods of time and getting logged out.. Unfortunately, that's not what seems to be happening for me.
I verified this from login.php in /admin

setcookie('cms_admin_user_id', '', time() - 3600);
setcookie('cms_passhash', '', time() - 3600);
setcookie(CMS_SECURE_PARAM_NAME, '', time() - 3600);

and I verified the cookies after logging in, but my session is not lasting for 3600 seconds..


Name CMSSESSID86506efc
Value 058a0eaea3750b608cf404ba57e644a2
Host blahblahblah.com
Path /
Secure No
Expires At End Of Session

    * Edit Cookie
    * Delete Cookie

Name PHPSESSID
Value 81cf1e6e71d47219dbb3735121800345
Host blahblahblah.com
Path /
Secure No
Expires At End Of Session

    * Edit Cookie
    * Delete Cookie

Name cms_admin_user_id
Value 1
Host blahblahblah.com
Path /admin/
Secure No
Expires At End Of Session

    * Edit Cookie
    * Delete Cookie

Name cms_language
Value en_US
Host blahblahblah.com
Path /admin/
Secure No
Expires At End Of Session

    * Edit Cookie
    * Delete Cookie

Name cms_passhash
Value 5f793caa84ca4bf0e10354ebe1a43203
Host blahblahblah.com
Path /admin/
Secure No
Expires At End Of Session
Here is the system configuration:



CMS Version

1.5.1

Installed Modules

CMSMailer

1.73.14

FileManager

0.4.3

MenuManager

1.5.3

ModuleManager

1.2.1

News

2.9.1

nuSOAP

1.0.1

Printing

0.2.6

Search

1.5.2

ThemeManager

1.0.8

TinyMCE

2.4.10

Album

0.9.3

FormBuilder

0.5.6

Config Information

php_memory_limit:



process_whole_template:

true

max_upload_size:

5000000

default_upload_permission:

664

assume_mod_rewrite:

false

page_extension:



internal_pretty_urls:

false

use_hierarchy:

false

debug:

false

output_compression:

false

root_url:

http://blahblahblah.com

root_path:

/data/15/1/103/99/1429262/user/1535168/htdocs (2775) Success

previews_path:

/data/15/1/103/99/1429262/user/1535168/htdocs/tmp/cache (2775) Success

uploads_path:

/data/15/1/103/99/1429262/user/1535168/htdocs/uploads (2775) Success

uploads_url:

http://blahblahblah.com/uploads

image_uploads_path:

/data/15/1/103/99/1429262/user/1535168/htdocs/uploads/images (2775) Success

image_uploads_url:

http://blahblahblah.com/uploads/images

use_smarty_php_tags:

false

locale:



default_encoding:

utf-8

admin_encoding:

utf-8
PHP Information:

Current PHP Version (phpversion):

5.2.6 Success

md5 function (md5_function):

On (True) Success

GD version (gd_version):

2 Success

tempnam function (tempnam_function):

On (True) Success

Magic quotes in runtime (magic_quotes_runtime):

Off (False) Success

PHP Effective Memory Limit (memory_limit):

32M Success

Maximum Execution Time (max_execution_time):

5000 Success

PHP Safe Mode (safe_mode):

Off (False) Success

Session Save Path (session_save_path):

/tmp (1777) Success

Checking if the httpd process can create a file inside of a directory it created (create_dir_and_file):

Success

PHP register_globals (register_globals):

Off (False) Success

PHP output_buffering (output_buffering):

4096 Success

disable_functions in PHP (disable_functions):

  Success

PHP Open Basedir (open_basedir):

  Success

Test for remote URL (test_remote_url):

Success
fsockopen: Connection ok! Success
fopen: Connection ok! Success

File uploads (file_uploads):

On (True) Success

Maximum Post Size (post_max_size):

8M Caution ?

Maximum Upload Size (upload_max_filesize):

2M Caution ?

Basic XML (expat) support (xml_function):

On (True) Success

Test file_get_contents (file_get_contents):

On (True) Success

Test ini_set (check_ini_set):

On (True) Success
Server Information:

Server API (server_api):

cgi-fcgi

Server Database (server_db_type):

MySQL (mysql)

Server Database Version (server_db_version):

5.0.45 Success

Server Software (server_software):

Apache/2.2.8 (Unix) FrontPage/5.0.2.2635

Server Operating System (server_os):

Linux 2.6.22.10-NETSOL On i686

Permission Information

tmp:

/data/15/1/103/99/1429262/user/1535168/htdocs/tmp (2775) Success

templates_c:

/data/15/1/103/99/1429262/user/1535168/htdocs/tmp/templates_c (2775) Success

modules:

/data/15/1/103/99/1429262/user/1535168/htdocs/modules (2775) Success

File Creation Mask (umask):

/data/15/1/103/99/1429262/user/1535168/htdocs/tmp/cache (2775) Success

config_file:

0664 Failure
config.php writable. It is more safe if you change permission to read-only
TheLastLegion
Forum Members
Forum Members
Posts: 54
Joined: Sun Dec 21, 2008 4:01 am

Re: Admin session timing out after 10-15 seconds

Post by TheLastLegion »

couple of things

first: is your browser set to empty cookies etc. periodically?
another would be to ask your host to stop dumping all the sessions in their root /tmp files which could be causing this problem
(as shown in your post)
Session Save Path (session_save_path):

/tmp (1777) Success

every session "temporarily" gets stored in the server's root /tmp file, and they maybe dumping/cleariing it every 10 min or so to catch up with their large user-base..

another suggestion would be to login to admin panel and log out fully and clear all cookies in an attempt to fix all cookie problems that may exist and then try again
User avatar
johnbmcdonald
Forum Members
Forum Members
Posts: 60
Joined: Mon May 14, 2007 8:01 pm
Location: Edmond, OK, USA

Re: Admin session timing out after 10-15 seconds

Post by johnbmcdonald »

I really appreciate your thoughts.

I'll try those things you suggested, and return the results here.

Thanks!
John
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Admin session timing out after 10-15 seconds

Post by Dr.CSS »

I've worked on network solutions server before and will never do it again they are the slowest I've ever worked on...

You may be just be timing out waiting for it to do anything...
User avatar
johnbmcdonald
Forum Members
Forum Members
Posts: 60
Joined: Mon May 14, 2007 8:01 pm
Location: Edmond, OK, USA

Re: Admin session timing out after 10-15 seconds

Post by johnbmcdonald »

Same admin session expires within 10 seconds in three different browsers

In Firefox 3.0.5:
Set to keep cookies until they expire
There are no exceptions established


In IE 7.0, it seems that cookies are kept until they expire
(at least there do not appear to be any controls to modify cookie keeping)

I just downloaded and installed Google Chrome browser, using default settings,
the same thing happens.

I tried from my desktop and two other laptops - All using FireFox different versions..

I've got cmsms 1.5.1 installed on multiple web hosts and they all have session_save_path set to /tmp
(that is not to say that I don't suspect it has something to do with the web host)
I don't have any other installations on this particular web host.

All my other installations work fine.

Additionally, I tried logging in and explicitly logging out as you suggested. That didn't change anything.


hmm... :(
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Admin session timing out after 10-15 seconds

Post by Dr.CSS »

So you have no other installs on this server?...

I still think it's related to the host, and yes the /tmp is fine , at least in all of my installs, 7, they are all set like this and I have no problems...
User avatar
johnbmcdonald
Forum Members
Forum Members
Posts: 60
Joined: Mon May 14, 2007 8:01 pm
Location: Edmond, OK, USA

Re: Admin session timing out after 10-15 seconds

Post by johnbmcdonald »

no, no other installations there. This site is for a friend's daughter, and unfortunately, she already had hosting set up at network solutions.

Is there anything beyond the session_save_path that might be host related that could be causing the problem?


Thanks
John
TheLastLegion
Forum Members
Forum Members
Posts: 54
Joined: Sun Dec 21, 2008 4:01 am

Re: Admin session timing out after 10-15 seconds

Post by TheLastLegion »

i have one and that would be to re-upload some main files or do a checksum to verify you've all files uploaded, as some ftp softwares tend to upload half a file or partially

which files to upload? i would say check in the /admin folder

another thing i would suggest is to do a php info file

like this create a new .php file and put this in here:

Code: Select all

<?php phpinfo(); ?>
and look for maximum mysql db time-outs etc. and see if you can increase that i suspect your maximum mysql execution time may need to be increased or look for other things that can be fixed related to php it could be a php configuration you can easily adjust
User avatar
johnbmcdonald
Forum Members
Forum Members
Posts: 60
Joined: Mon May 14, 2007 8:01 pm
Location: Edmond, OK, USA

Re: Admin session timing out after 10-15 seconds

Post by johnbmcdonald »

Thanks again for the ideas! 

Here is what happened:

I replaced all the files in /admin  /lib  and /modules
unfortunately, that didn't have any positive effects. Its still happening

One thing I noticed, there is some strangeness going on with the URL/Domain:

if I am at http://www.thedomain.com

and I add /admin to the domain

which makes it http://www.thedomain.com/admin

I would expect to end up at: http://www.thedomain.com/admin/login.php

but it drops the www and puts me at

http://thedomain.com/admin/login.php


If I go directly to

http://www.thedomain.com/admin/login.php

and login, I end up at

http://thedomain.com/admin/index.php?_s_=bd5ba4a3

dropping the www again.

I don't know if this has anything to do with anything thats going on....



PHP Logo
PHP Version 5.2.6

System Linux vux22 2.6.22.10-NETSOL #1 SMP Tue May 20 17:56:43 EDT 2008 i686
Build Date Sep 19 2008 17:03:34
Configure Command './configure' '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--prefix=/usr/services/vux' '--enable-track-vars' '--enable-inline-optimization' '--with-zlib' '--with-openssl' '--enable-bcmath' '--with-bz2' '--with-curl' '--enable-dba' '--enable-sockets' '--enable-dbx' '--enable-ftp' '--with-gettext' '--with-iconv' '--enable-exif' '--enable-mbstring' '--with-pic' '--without-pear' '--enable-cli' '--enable-cgi' '--prefix=/usr/services/vux/php5' '--with-mysql=/usr/services/vux/mysql' '--with-inifile' '--enable-force-cgi-redirect' '--with-db4' '--with-flatfile' '--enable-calendar' '--with-readline' '--with-gdbm' '--with-gd' '--with-jpeg-dir=/usr/lib' '--with-png-dir=/usr/lib' '--with-freetype-dir=/usr/lib' '--with-mime-magic' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--with-mcrypt' '--with-mhash' '--with-pspell' '--with-xmlrpc' '--enable-soap' '--enable-wddx' '--enable-xslt' '--disable-path-info-check' '--enable-fastcgi' '--with-xslt-sablot' '--with-xsl' '--with-pdo-mysql=/usr/services/vux/mysql/' '--with-mysqli=/usr/services/vux/mysql/bin/mysql_config' '--with-zip' '--build=i686-pc-linux-gnu'
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/services/vux/php5/lib
Loaded Configuration File /data/15/1/103/99/1429262/user/1535168/cgi-bin/php.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

PHP Credits
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference Off Off
allow_url_fopen On On
allow_url_include Off Off
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root c:/EasyWAMP/www c:/EasyWAMP/www
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 6135 6135
expose_php On On
extension_dir c:/EasyWAMP/php4/extensions c:/EasyWAMP/php4/extensions
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/services/vux/php5/lib/php .:/usr/services/vux/php5/lib/php
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 5000 5000
max_input_nesting_level 64 64
max_input_time 5000 5000
memory_limit 32M 32M
open_basedir no value no value
output_buffering 4096 4096
output_handler no value no value
post_max_size 8M 8M
precision 14 14
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv Off Off
register_globals Off Off
register_long_arrays On On
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 2M 2M
upload_tmp_dir no value no value
user_dir no value no value
variables_order GPCS GPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off

bcmath
BCMath support enabled

bz2
BZip2 Support Enabled
Stream Wrapper support compress.bz2://
Stream Filter support bzip2.decompress, bzip2.compress
BZip2 Version 1.0.5, 10-Dec-2007

calendar
Calendar support enabled

cgi-fcgi
Directive Local Value Master Value
cgi.check_shebang_line 1 1
cgi.force_redirect 1 1
cgi.nph 0 0
cgi.redirect_status_env no value no value
cgi.rfc2616_headers 0 0
fastcgi.logging 1 1

ctype
ctype functions enabled

curl
cURL support enabled
cURL Information libcurl/7.15.1 OpenSSL/0.9.8f zlib/1.2.3

date
date/time support enabled
"Olson" Timezone Database Version 2008.2
Timezone Database internal
Default timezone America/New_York

Directive Local Value Master Value
date.default_latitude 31.7667 31.7667
date.default_longitude 35.2333 35.2333
date.sunrise_zenith 90.583333 90.583333
date.sunset_zenith 90.583333 90.583333
date.timezone no value no value

dba
DBA support enabled
Supported handlers gdbm cdb cdb_make db4 inifile flatfile

dom
DOM/XML enabled
DOM/XML API Version 20031129
libxml Version 2.6.32
HTML Support enabled
XPath Support enabled
XPointer Support enabled
Schema Support enabled
RelaxNG Support enabled

exif
EXIF Support enabled
EXIF Version 1.4 $Id: exif.c,v 1.173.2.5.2.25 2008/03/12 17:33:14 iliaa Exp $
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF

filter
Input Validation and Filtering enabled
Revision $Revision: 1.52.2.42 $

Directive Local Value Master Value
filter.default unsafe_raw unsafe_raw
filter.default_flags no value no value

ftp
FTP support enabled

gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.4
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

gettext
GetText Support enabled

hash
hash support enabled
Hashing Engines md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

iconv
iconv support enabled
iconv implementation glibc
iconv library version 2.7

Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1

json
json support enabled
json version 1.2.1

libxml
libXML support active
libXML Version 2.6.32
libXML streams enabled

mbstring
Multibyte Support enabled
Multibyte string engine libmbfl
Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) version 4.4.4
Multibyte regex (oniguruma) backtrack check On

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.internal_encoding ISO-8859-1 no value
mbstring.language neutral neutral
mbstring.strict_detection Off Off
mbstring.substitute_character no value no value

mcrypt
mcrypt support enabled
Version 2.5.7
Api No 20021217
Supported ciphers cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes
Supported modes cbc cfb ctr ecb ncfb nofb ofb stream

Directive Local Value Master Value
mcrypt.algorithms_dir no value no value
mcrypt.modes_dir no value no value

mhash
MHASH support Enabled
MHASH API Version 20020524

mime_magic
mime_magic support invalid magic file, disabled

Directive Local Value Master Value
mime_magic.debug Off Off
mime_magic.magicfile no value no value

mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 5.0.45
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/services/vux/mysql/include/mysql
MYSQL_LIBS -L/usr/services/vux/mysql/lib/mysql -lmysqlclient

Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_charset no value no value
mysql.connect_timeout 60 60
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off

mysqli
MysqlI Support enabled
Client API library version 5.0.45
Client API header version 5.0.45
MYSQLI_SOCKET /tmp/mysql.sock

Directive Local Value Master Value
mysqli.connect_charset no value no value
mysqli.default_host no value no value
mysqli.default_port 3306 3306
mysqli.default_pw no value no value
mysqli.default_socket no value no value
mysqli.default_user no value no value
mysqli.max_links Unlimited Unlimited
mysqli.reconnect Off Off

openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.8f 11 Oct 2007

pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 7.6 2008-01-28

Directive Local Value Master Value
pcre.backtrack_limit 100000 100000
pcre.recursion_limit 100000 100000

PDO
PDO support enabled
PDO drivers sqlite2, sqlite, mysql

pdo_mysql
PDO Driver for MySQL, client library version 5.0.45

Directive Local Value Master Value
pdo_mysql.connect_charset no value no value

pdo_sqlite
PDO Driver for SQLite 3.x enabled
PECL Module version (bundled) 1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6.2.3 2007/12/31 07:20:10 sebastian Exp $
SQLite Library 3.3.7

posix
Revision $Revision: 1.70.2.3.2.18 $

pspell
PSpell Support enabled

Reflection
Reflection enabled
Version $Id: php_reflection.c,v 1.164.2.33.2.50 2008/03/13 15:56:21 iliaa Exp $

session
Session Support enabled
Registered save handlers files user sqlite
Registered serializer handlers php php_binary wddx

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_httponly Off Off
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 4 4
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path no value no value
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0

SimpleXML
Simplexml support enabled
Revision $Revision: 1.151.2.22.2.39 $
Schema support enabled

soap
Soap Client enabled
Soap Server enabled

Directive Local Value Master Value
soap.wsdl_cache 1 1
soap.wsdl_cache_dir /tmp /tmp
soap.wsdl_cache_enabled 1 1
soap.wsdl_cache_limit 5 5
soap.wsdl_cache_ttl 86400 86400

sockets
Sockets Support enabled

SPL
SPL support enabled
Interfaces Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException

SQLite
SQLite support enabled
PECL Module version 2.0-dev $Id: sqlite.c,v 1.166.2.13.2.10 2007/12/31 07:20:11 sebastian Exp $
SQLite Library 2.8.17
SQLite Encoding iso8859

Directive Local Value Master Value
sqlite.assoc_case 0 0

standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i

Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry
user_agent no value no value

tokenizer
Tokenizer Support enabled

wddx
WDDX Support enabled
WDDX Session Serializer enabled

xml
XML Support active
XML Namespace Support active
libxml2 Version 2.6.32

xmlreader
XMLReader enabled

xmlrpc
core library version xmlrpc-epi v. 0.51
php extension version 0.51
author Dan Libby
homepage http://xmlrpc-epi.sourceforge.net
open sourced by Epinions.com

xmlwriter
XMLWriter enabled

xsl
XSL enabled
libxslt Version 1.1.24
libxslt compiled against libxml Version 2.6.32
EXSLT enabled
libexslt Version 1.1.24

zlib
ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3

Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value

Additional Modules
Module Name
readline

Environment
Variable Value
PATH /usr/local/bin:/usr/bin:/bin
DOCUMENT_ROOT /data/15/1/103/99/1429262/user/1535168/htdocs

PHP Variables
Variable Value
_REQUEST["PHPSESSID"] 81cf1e6e71d47219dbb3735121800345
_REQUEST["CMSSESSID86506efc"] 058a0eaea3750b608cf404ba57e644a2
_COOKIE["PHPSESSID"] 81cf1e6e71d47219dbb3735121800345
_COOKIE["CMSSESSID86506efc"] 058a0eaea3750b608cf404ba57e644a2
_SERVER["PATH"] /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/var/hivedb/:/usr/services/vux/apache/bin:/usr/services/vux/mysql/bin
_SERVER["DOCUMENT_ROOT"] /data/15/1/103/99/1429262/user/1535168/htdocs
_SERVER["FCGI_ROLE"] RESPONDER
_SERVER["SCRIPT_URL"] /phpinfo.php
_SERVER["SCRIPT_URI"] http://asdfasdfasdf.com/phpinfo.php
_SERVER["DOMAIN_NAME"] asdfasdfasdfasfd.com
_SERVER["DOMAIN_PATH"] /data/15/1/103/99/1429262/user/1535168/htdocs
_SERVER["PKEY"] 1429262.1535168
_SERVER["RAILS_URI"] INVAL
_SERVER["DOMAIN_USER"] 1429262.1535168
_SERVER["HTTP_HOST"] asdfasdfasdfasdfl.com
_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
_SERVER["HTTP_ACCEPT"] text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.5
_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate
_SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_KEEP_ALIVE"] 300
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["HTTP_COOKIE"] PHPSESSID=81cf1e6e71d47219dbb3735121800345; CMSSESSID86506efc=058a0eaea3750b608cf404ba57e644a2
_SERVER["SERVER_SIGNATURE"] no value
_SERVER["SERVER_SOFTWARE"] Apache/2.2.8 (Unix) FrontPage/5.0.2.2635
_SERVER["SERVER_NAME"] asdfasdfasdfal.com
_SERVER["SERVER_ADDR"] 10.49.38.149
_SERVER["SERVER_PORT"] 80
_SERVER["REMOTE_ADDR"] 68.97.75.192
_SERVER["SERVER_ADMIN"] [no address given]
_SERVER["SCRIPT_FILENAME"] /data/15/1/103/99/1429262/user/1535168/htdocs/phpinfo.php
_SERVER["REMOTE_PORT"] 59747
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /phpinfo.php
_SERVER["SCRIPT_NAME"] /phpinfo.php
_SERVER["PHP_SELF"] /phpinfo.php
_SERVER["REQUEST_TIME"] 1231034715

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.

I changed

max_execution_time = 5000
max_input_time = 5000

to:

max_execution_time = 120
max_input_time = 120

this made no difference

hmm.....
Pierre M.

Re: Admin session timing out after 10-15 seconds

Post by Pierre M. »

Hello,

I'm not sure but if a session cookie is set against www.thisthat.tld and you lose www they you have no valid session cookie hence no session hence not logged in ?
I suggest a canonical hostname with www at the webserver level (see its doc).

Pierre M.
jab
Forum Members
Forum Members
Posts: 60
Joined: Sun Oct 30, 2005 4:21 am

Re: Admin session timing out after 10-15 seconds

Post by jab »

I have the same problem -

I get logged out of the Admin Panel upon "Submit" or link selection in any area of the Admin panel when there is more than 20 seconds between updates, navigation or other event triggers.

I did checksum, all looks good.

I have upgraded to v1.5.1 running on MySQL 5.0.45 and PHP5.2.2. from v1.4.1

Running on iPower host.

I use IE and I have cookies turned on and trusted site enabled for the URL I am updating.

The problem seems to occur when there is 20 seconds or more of lapse between submission of an update, event or link navigation.

It appears more likely to occur upon "Submit" than it does upon clicking "Apply" in the Layout or Pages section of the Admin panel.

The issue also seems more likely to occur when switching between browser windows - not sure on this one as it could still be the time between updates or events in the CMSMS Admin.

The "moduleinterface" file seems to be the mediator for events and navigation in the Admin panel. This file could be the source - not sure!

Overall, the issue acts like an activity timeout that many applications have for security purposes.

I don't know what to do either...
Pierre M.

Re: Admin session timing out after 10-15 seconds

Post by Pierre M. »

Could it be a misconfig of the Host field in the cookies ?
jab
Forum Members
Forum Members
Posts: 60
Joined: Sun Oct 30, 2005 4:21 am

Re: Admin session timing out after 10-15 seconds

Post by jab »

If it is misconfig of the host field in the cookies: How can this be fixed?
jab
Forum Members
Forum Members
Posts: 60
Joined: Sun Oct 30, 2005 4:21 am

Re: Admin session timing out after 10-15 seconds

Post by jab »

The following solved the session timeout issue for me.

If you are using a local php.ini file ensure that you have a path specified in the "session.save_path" directive. Create a phpsessions folder above your domain root (ht_docs or public_html) folder and point to it using the "session.save_path" directive in you local php.ini file. Place the php.ini in your domain root directory. This should correct the session timeout. The problem is the session is not being saved or cleared from the host /tmp location. Let us know if this works for you.
Post Reply

Return to “CMSMS Core”