Wednesday 4 September 2019

Session value not getting php


php session not working between pages


If you are set session value in one php page, works find in this page, but next page not received any session value. And this session value not get in any page or sub folder or folder.

Simple way to get this session value your other php page in single click.



1. Must be sure always write this code: session_start();

2. Check your .htaccess page and check below code here:

Header always edit Set-Cookie (.*) "$1; HTTPOnly"
Header always edit Set-Cookie (.*) "$1; Secure"

if above two lines here please remove these code in your .htaccess page and enjoy session store value your all pages.
Thanks.