Hi

How to set cookies using header() function and using setcookie function?

Setcookie('testcookie','Balaji',time()+3600,'/','10.145.0.1',1);

If I want to write same thing with header function how can I do that?

Is it like 

header("Set-Cookie:
name=testcookie,value=Balaji,domain=10.145.0.1,secure=1")

                or

header("Set-Cookie: testcookie,Balaji,10.145.0.1,1")


Thanks in Advance
Balaji

**************************Disclaimer************************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************************

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to