Cookie expiring to early for site

I am able to stay logged in a little longer but I guess the cookie or session is expiring other then that I reinstalled twice with no change in config or folder names.

I have tried adding this bunch of code to my .htaccess in hope it would solve this problem.

<IfModule mod_php5.c>
    #Session timeout
    php_value session.cookie_lifetime 0
    php_value session.gc_maxlifetime 0


PS I apologize if I have made any of the e107 devs mad with the way I do things that was not my intention. I am not much of a coder type person so I rely on the e107 team for all my problems.
e107 version 2.1.2

tgtje commented Nov 16, 2016

Just commenting not answering.. needs a programmer... By install cookie time is 84600 (about 1 day). But there is difference between cookie/session time and actually 'being busy time'. (easy answered). The last is dependant on server... were a cookie will be 'erased'after a day... Thats 1.. 2) For the above mentioned htacc.. (not to familiar with it) you also need AllowOverride session.cookie_lifetime specifies the lifetime of the cookie in seconds which is sent to the browser ( a real session might still be valid) some more inside : https://bytes.com/topic/php/insights/889606-setting-timeout-php-sessions

Moc commented Nov 16, 2016

Which user tracking method are you using? (see preferences?) Does switching to the other option make a difference?

inferno-prime commented Nov 16, 2016

I tried it and got the same result.

inferno-prime commented Nov 16, 2016

Thanks for the info tgtje I will have a look over it.
closed with the note: Solved

1 Answer


inferno-prime Points57
For reference in the event someone else has this problem I added this into my .htaccess : RewriteRule .* - [CO=test:mycookievalue:.example.com:0:/]

tgtje commented Nov 18, 2016

Thank you for sharing wink


e107 Q&A is a Question and Answer platform where e107 users can ask questions themselves and answer each others questions. By doing so users can earn badges and points and become e107 experts.

This community platform is a valuable tool for sharing and gaining knowledge on e107. Go ahead and find out yourself!

Connect with us