Skip to content

flbeta_function_setCookie

Wesley de Groot edited this page Nov 3, 2016 · 20 revisions
                     _          
                    (_)         
            	     _    _____ 
        	        | |  / ____|
    	            | |  | (___ 
	            _   | |  \___  \
 ______    _   | |__| |  ____) |
|______|  (_)   \____/  |______/
                     v0.0.8 Beta

Function setCookie

_('.wrapper').setCookie(name, value)



Set cookie data

Parameter list

Type @var Description Required
string name cookies name Required
string value cookies value Required
string [path] path (default: /) Optional
string [domain] domain (default .domainname.extension) Optional
bool [secure] secure cookie? (default: false) [JS Can't read secure cookies!] Optional

🕸 Web Only

This function is only for websites


🌍 Universal function

This function is for the Command Line Interface and Websites!


Example:

_.setCookie('Cookiemonster', 'Cookiemonster is cool')


Returns:

null




[Back to function list](https://github.com/wdg/_.js/wiki/Function%20List%20(Beta))
Clone this wiki locally