passing cookie variables
Posted: Thu Apr 12, 2018 11:31 pm
Hi guys,
An authentication script which then extracts the user id entered by the user and then stores it in a cookie variable called $mycookie.
Further on into the site I am able to use the cookie to perform various select statements. Only problem is that php files that i have 'required' do not recieve or even recognise the $mycookie variable.
example: require("add.php");
So my select statements which end WHERE user_id='mycookie' simply do not function.
Please forgive me if im overlooking something very small, please point me in the right direction.
Many thanks.
An authentication script which then extracts the user id entered by the user and then stores it in a cookie variable called $mycookie.
Further on into the site I am able to use the cookie to perform various select statements. Only problem is that php files that i have 'required' do not recieve or even recognise the $mycookie variable.
example: require("add.php");
So my select statements which end WHERE user_id='mycookie' simply do not function.
Please forgive me if im overlooking something very small, please point me in the right direction.
Many thanks.