views:

18

answers:

0

I have the following code:

set_cookie('visible','no',2020,1,1,'/','.domain.net');

Rather than specifiying the domain I need the domain to match which ever domain the script is being run under.

Im trying to use: (document.domain)

How can I combine the two bits of script so that '.domain.net' becomes what ever domain is being accessed?

Dont forget the domain needs to be '.domain.net' not just 'domain.net'