Jump to content

Please check my cookie script


veluit06

Recommended Posts

any body tel me please following scripts are correct r wrong

 

<?php

$expire=time()+60*60*24*30;

setcookie("mylink", "http://www.kickvirus.com", $expire);

?>

 

above script is for store a cookie

 

<?php

if (isset($_COOKIE["mylink"]))

  echo "Welcome " . $_COOKIE["mylink"] . "!<br />";

else

  echo "Welcome guest!<br />";

?>

 

 

above script for welcome a cookie value

 

but i have  to store this welcome cookie value inside my browser addressbar

how can i do any body help me plz

 

Link to comment
https://forums.phpfreaks.com/topic/138110-please-check-my-cookie-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.