Set Cookie Snippets


31 December, 2014   

Function that allows a Javascript cookie to be set after HTML has been output to the page.

You should use err_headers_out() and not headers_out() when you want to send cookies in the REDIRECT response.

14 July, 2014   

A few points of interest: * The HREF links use JavaScript to set a browser cookie named "style". * Since we are only setting one cookie and it's name is "style", we can read its value using "document.cookie.charAt(6)". * If no cookie is set, "StyleFile" will evaluate to "style.css". * The...

08 February, 2014   

How to set/get/delete Cookies

26 December, 2013   

Java code to read cookies, part of my WebAdmin project at BMT ARGOSS.

09 July, 2012   

Place the following JavaScript code within the <BODY> of your web page.

03 April, 2014   

JavaScript functions to add, fetch or delete browser's cookies

26 September, 2011   

Pop up windows can provide a great way to gain new subscribers to your publication and even increase your sales. However, they can also be very irritating to your visitors. For this reason, you may want to use a pop up window JavaScript code that will only load the pop up window on your visitor's first visit. That way you're not continually...

03 April, 2011   

If you're looking for a JavaScript code to enable you to create a first visit pop up window for your web site, you've come to the right place. Pop up windows can provide a great way to gain new subscribers to your publication and even increase your sales. However, they can also be very irritating to your visitors. For this reason, you may want...

13 November, 2014   

Here is a form that asks for Name and Email address. When the form is submitted the Email address is verified first. If you put in a Name and a correct Email address, an anchor element is displayed allowing the user to download the file, two cookies are created storing the Name and Email address. If the user goes BACK in the browser and tries...

Of course, this must be encapsulated and taken to a much higher abstraction level (something like wshGetSpecialFolder [folderName] and wshCreateLink args...)

13 December, 2011   

Chooses a pre-determined playlist from your iTunes library

Asp code example to show the date a file was created

17 July, 2013   

This one creates a back of the current workbook.

Here are the Dos Batch code to Convert Video for Andriod Phone .

13 November, 2012   

Use this snippet to let your visitors change the background color of your Web page. Combined with a cookie, the setting could follow them through your whole site.

12 August, 2015   

Example shows how to capitalize in MySQL.

13 December, 2011   

You can use to find and replace text in a variable. This script created by Bruce Phillips, one of the leading posters at MacScripter.

An example MYSQL function

05 December, 2013   

AppleScript Source Code for Evernote Notebooks Backup