Welcome Guest, Not a member yet? Register   Sign In
Session data lost on redirect
#1

Hi,
I'm struggling to to properly redirect from a filter. I'm trying to store some data in the SESSION before returning from the filter with the idea to use the data in the page redirected to.

Everything works fine when I use secure connection (https). Without a secure connection the data written to teh SESSION is gone when I try to read it on the redirection target page. These are my coockie and session settings:

PHP Code:
    public $sessionDriver            'CodeIgniter\Session\Handlers\FileHandler';
    public 
$sessionCookieName        'ci_session';
    public 
$sessionExpiration        7200;
    public 
$sessionSavePath          WRITEPATH 'session';
    public 
$sessionMatchIP           false;
    public 
$sessionTimeToUpdate      300;
    public 
$sessionRegenerateDestroy false;
    public 
$cookiePrefix   'nexus_';
    public 
$cookieDomain   '';
    public 
$cookiePath     '/';
    public 
$cookieSecure   false;
    public 
$cookieHTTPOnly false

Any help is much appreciated.
Reply


Messages In This Thread
Session data lost on redirect - by Jan Zelenka - 08-24-2020, 07:27 AM
RE: Session data lost on redirect - by Chroma - 08-27-2020, 04:28 AM
RE: Session data lost on redirect - by tgix - 08-27-2020, 07:23 AM
RE: Session data lost on redirect - by Chroma - 08-27-2020, 06:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB