passing cookie variables
Posted: Fri Apr 19, 2002 5:59 pm
Hi guys,
I have created a 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.
-Abi
I have created a 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.
-Abi