Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

SahilSharmaPyntax's avatar

Session not persisting when redirecting after adding data to the session

Hi All,

I am trying to save some key => values in the session before i redirect to Twitter OAUth page. The session is not persisting any data.

I have tested this is centos, ubuntu both running php5.6

PHP 5.6.16 (cli) (built: Nov 26 2015 08:01:30) Copyright (c) 1997-2015 The PHP Group

Apache version Server version: Apache/2.4.18 (CentOS) Server built: Dec 14 2015 18:39:31

I get no errors, the storage folder is writable and i get not errors at all.

Can someone please help me with this issues.

------UPDATE

It turns out that no file is being written ("storage/framework/sessions").

Thanks

0 likes
1 reply

Please or to participate in this conversation.