cancel
Showing results for 
Search instead for 
Did you mean: 

Redis increase auto logout time

SOLVED

Redis increase auto logout time

I have the next configuration in the local.xml file and after ~ 30 minutes customers auto logout.

 

    <cache>
        <fast_backend>Mage_Cache_Backend_Redis</fast_backend>
        <fast_backend_options>
            <server>127.0.0.1</server>
            <port>6379</port>
            <persistent></persistent>
            <database>0</database>
            <password></password>
            <force_standalone>1</force_standalone>
            <connect_retries>1</connect_retries>
            <read_timeout>10</read_timeout>
            <automatic_cleaning_factor>0</automatic_cleaning_factor>
            <compress_data>1</compress_data>
            <compress_tags>1</compress_tags>
            <compress_threshold>20480</compress_threshold>
            <compression_lib>gzip</compression_lib>
        </fast_backend_options>

        <!-- <slow_backend>database</slow_backend> -->
        <slow_backend>memcached</slow_backend>
        <memcached>
            <servers>
                <server>
                    <host><![CDATA[127.0.0.1]]></host>
                    <port><![CDATA[11211]]></port>
                    <persistent><![CDATA[1]]></persistent>
                </server>
            </servers>
            <compression><![CDATA[0]]></compression>
            <cache_dir><![CDATA[]]></cache_dir>
            <hashed_directory_level><![CDATA[]]></hashed_directory_level>
            <hashed_directory_umask><![CDATA[]]></hashed_directory_umask>
            <file_name_prefix><![CDATA[]]></file_name_prefix>
        </memcached>
    </cache>

If remove this part of configuration customer auto logout time increases to a few hours and more.

How to fix this configuration?

'Cookie Lifetime' is set 86400.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Redis increase auto logout time

this is your cache configuration not the sessions.

make sure you have php session timeout increased

check php.ini

 

 

 

------------
MagenX - Magento and Server optimization

View solution in original post

2 REPLIES 2

Re: Redis increase auto logout time

this is your cache configuration not the sessions.

make sure you have php session timeout increased

check php.ini

 

 

 

------------
MagenX - Magento and Server optimization

Re: Redis increase auto logout time

Thanks,

I changed session.gc_maxlifetime  and it helped.