Results 1 to 7 of 7

Thread: Timeout settings

  1. #1
    fabravo is offline Sugar Community Member
    Join Date
    Aug 2005
    Posts
    17

    Question Timeout settings

    I am trying to extend the time out setting for Sugar Open Source (3.5.1e) with no success. I have tried everything I can think of and am still not able to keep a session active for longer than a short period of time (don't know exactly how long the session is staying active for, but it's not more than 20 minutes). I have users who login and then leave their computer. They want to be able to do this without re-logging in each time.

    The last think I have tried is to add this command to the .htaccess file on my server:
    php_value session.gc_maxlifetime 14400

    There must be a setting within Sugar, however, that kills out the session sooner than the 14400 seconds I have set. Obviously, this is a time consuming testing process because I have to wait some period of time each time I try something new.

    Help!!!!

    Thanks in advance!

    \frank

  2. #2
    jacobmendoza is offline Junior Member
    Join Date
    Apr 2007
    Posts
    4

    Default Re: Timeout settings

    Sugar uses the PHP session mechanism. Session timeouts are set in the php.ini file.

  3. #3
    pblag's Avatar
    pblag is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Ukraine (Chernivtsy)
    Posts
    347

    Default Re: Timeout settings

    Hi!

    I think that you have to update file:

    modules/Configurator/EditView.php

    there should be code like following

    //$javascript->addFieldRange("system_session_timeout", "int", $mod_strings['SESSION_TIMEOUT'], TRUE, "", 0, $ini_session_val);

    replace $ini_session_val with time in second and you'll be able to change session time directly from Admin/System Settings


    corrected code should be like this:

    $javascript->addFieldRange("system_session_timeout", "int", $mod_strings['SESSION_TIMEOUT'], TRUE, "", 0, 80000);
    Petro Blagodir
    petro@blagodir.ua
    http://www.blagodir.com
    Blagodir Ltd.( SugarCRM - Consultations, Development and Support)

  4. #4
    roblaus's Avatar
    roblaus is offline Sugar Community Member
    Join Date
    Dec 2006
    Location
    Vienna / Austria
    Posts
    2,850

    Default Re: Timeout settings

    Frank,

    The timeout change from 1440 to say 3000 did the trick for me. Did you restart Apache?

    rgds
    rl
    __________________________
    Robert Laussegger
    http://www.iscongroup.net

    Bei Fragen: support@iscon.at
    Die deutschen Sprachdateien für SugarCRM und das deutsche Handbuch gibt es hier: http://goo.gl/kPsAz
    Ab sofort auch mit 6.4.2

  5. #5
    pblag's Avatar
    pblag is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Ukraine (Chernivtsy)
    Posts
    347

    Wink Re: Timeout settings

    Hi!

    Previous post can help you if your php session timeout bigger than SugarCRM session time out and you needn't restart the apache.

    in other situation you have to update php.ini file and after that you have to restart the web server.
    Petro Blagodir
    petro@blagodir.ua
    http://www.blagodir.com
    Blagodir Ltd.( SugarCRM - Consultations, Development and Support)

  6. #6
    hkphooey is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    94

    Default Re: Timeout settings

    This session timeout doesn't seem to be working for me. Basically the session never times out. I'm running 4.51 on Centos 4.4 based on the bitrock installer.

    I've tried altering the session.gc_maxlifetime value eg to 1500. I look at phpinfo() and the old session value is in place. I restart apache and the new session value is reinstated. However the session still never times out.

    My suspicion was that there was some communication between my client and the server which I wasn't aware of that was keeping the session alive, eg some AJAX stuff. I've tried capturing the traffic with

    Code:
    tcpdump -vv dst port 443 and host xxx.xxx.xxx.xxx
    This captures traffic when I load pages manually, but there is no traffic at all when I leave the connection idle. Yet still the session doesn't time out.

    Anyone got any clues? If I delete all the sess* files from /tmp, then I'm timed out immediately. Is it possible that this directory is not being cleaned out by php? Maybe some kind of permisison issue?

  7. #7
    pblag's Avatar
    pblag is offline Sugar Community Member
    Join Date
    Jul 2006
    Location
    Ukraine (Chernivtsy)
    Posts
    347

    Default Re: Timeout settings

    Hi!

    As i know the SugarCRM 4.5.1b version doesn't have Session functionality

    Does anyone know something about this situation?
    Petro Blagodir
    petro@blagodir.ua
    http://www.blagodir.com
    Blagodir Ltd.( SugarCRM - Consultations, Development and Support)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 4.5.1 can't overwrite inbound email settings?
    By sscalzo in forum Installation and Upgrade Help
    Replies: 8
    Last Post: 2007-10-03, 08:52 PM
  2. Replies: 5
    Last Post: 2007-07-19, 03:06 AM
  3. Inbound Email Settings Help
    By nctcjray in forum Help
    Replies: 2
    Last Post: 2007-06-07, 02:32 PM
  4. Need to solve class.smtp.php timeout error
    By guruttamdotcom in forum Help
    Replies: 4
    Last Post: 2006-07-08, 04:41 AM
  5. Timeout functionality
    By openworld in forum Developer Help
    Replies: 1
    Last Post: 2005-11-30, 05:05 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •