answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: What is setcookie function?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do websites cookies?

In php programming language, you can set cookies like that: setcookie("username","demo");


What is persistence cookie in php with example?

Please PHP cookies are a mechanism to store small amount of data via browser on a user computer, usually used for permanent login to websites like Facebook, Twitter, for online shopping etc. In PHP there are 2 functions for creating a cookie - setcookie() and setrawcookie(). The complete syntax of the setcookie function is bool setcookie ( string $name [, string $value [, int $expire = 0 [, string $path [, string $domain [, bool $secure = false [, bool $httponly = false ]]]]]] ) The only required parameter is $name, that is the name of the cookie, all other parameters are optional. For example if you want to store the time of the page loading, you can write setcookie('loaded_time', date('r')); and if you want to display the cookie content to the browser, you can write echo $_COOKIE['loaded_time']; To make the cookie persistent, you must set the third parameter $expire to a long period, for example 3600x24x365 is 1 year, because $expire contains time in seconds: setcookie('loaded_time', date('r'), time()+3600*24*365); The function time() returns the number of seconds since January 1, 1970, so this sets the expiration of the cookie to the next year. The function setrawcookie() does the same, but without urlencoding the cookie value, its syntax is: bool setrawcookie ( string $name [, string $value [, int $expire = 0 [, string $path [, string $domain [, bool $secure = false [, bool $httponly = false ]]]]]] )


How will you set a cookie in php?

The syntax is : setcookie(name, value, expire, path, domain); And then to return it: echo $_COOKIE["user"]; And a way to view all cookies is: print_r($_COOKIE);


How do you create a cookie and where will it placed in php?

You can set a cookie using the setcookie() function. You can do this as many times as you wish during your script. Remember that the cookie will not be available to PHP until the next time the page is loaded (or the script is called by a new HTTP request). On the next page, you can access the cookie data from the $_COOKIE super-global array. The key will be the name of the cookie, and the value will be the value you assigned to it the last time you set it.


A formula prewritten by excel is called?

Function


What is the parent function for the exponential function?

The parent function of the exponential function is ax


What function tests a specific condition in Excel?

The IF function is the main function to do it and you can also use other logical functions, like the AND function, the OR function or the NOT function.


What function in Microsoft Excel 2003 to write the amount in word?

Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.Such a function does not exist for English. A function call BAHTTEXT will do it for the Thai language.


A function takes the exponential function's output and returns the exponential function's input?

A __________ function takes the exponential function's output and returns the exponential function's input.


Is the inverse of an exponential function the quadratic function?

No. The inverse of an exponential function is a logarithmic function.


Geta is a math function or string function?

GetA is a math function and not a string function.


What is if function withan an if function call?

A nested function.