in reply to Re^2: Cookie->fetch problem
in thread Cookie->fetch problem

my $dbh = ""; my $session = ''; my $sessionname = 'CGISESSID';

is set at the beginning of the file and used all over including set and get cookies.

I finally found where the expiration had been set at 1d and changed it to 7.

The cookies are persistent. Checked before and after and against the sessions MySQL table.

Best regards

Replies are listed 'Best First'.
Re^4: Cookie->fetch problem
by huck (Prior) on Mar 09, 2017 at 23:12 UTC

    another thing is that you may want to check your mysql sessions table to find any session-rows that have _SESSION_ETIME > 604800 that would have been set as the result of that Now()+7*24*60*60 call. You may want to plain delete them and force those users to login again or reset them to 604800 ( 7 days)