Sir, I have these codes on the top of connectionstring
ini_set('session.save_handler', 'files');
session_set_save_handler($session, true);
session_save_path(__DIR__ . '/sessions');
session_start();
There is folder named sessions in include folder to save session information.
connectsql.php is in include folder and index.php in at root.
But when I try to run my website then this error message appears
Notice: Undefined variable: session in D:\DZHosts\LocalUser\SilentHeart\www.asia.abc.com\includes\connectsql.php on line 4
Warning: session_set_save_handler() expects parameter 1 to be SessionHandlerInterface, null given in D:\DZHosts\LocalUser\SilentHeart\www.asia.abc.com\includes\connectsql.php on line 4
Please help me how to store session information?