Thanks razvan, I thought I understand what the problem is.
> I made a separate include file with several functions that
> take care of the stuff i need, file that is not located anywere
> near the w3t directory
Do you mean that you have another seperate include file contains some funtions from main.inc.php just for your own scripts?
And how can I adopt my main.inc.php's setcookie for a domain wide browsing?
TIA.