cookies

Form Input - Restricting to one submit per IP / Computer

I'm coding a sweepstakes entry form in php where the User submits some information in a form and it is stored in a database. I would like to find a way to restrict this form to one submission per person. Either dropping a cookie or by IP address. What would be the best way to approach this? I'm building it on code igniter, if that make...

Jquery cookie plugin - conditional content determined by cookie being set

Hello I have a sign up form that is displayed to all new site visitors. If a user fills out the form, the next time they visit the site, I would like to display a "welcome back" message where the form would usually sit. I am trying to do this via the jquery cookie plugin (http://plugins.jquery.com/project/Cookie). My form would look ...

Delete from array help

I have a cookie which stores info in an array. This is for a classifieds website, and whenever users delete their 'ads' the cookie must also be removed of the ad which was deleted. So I have this: if (isset($_COOKIE['watched_ads'])){ $expir = time()+1728000; $ad_arr = unserialize($_COOKIE['watched_ads']); foreach($ad_a...

Google analytics Cookies

In my browser cookies are creating by name _utma,_utmb and so on if i reject cookie creation.I think this cookie is for google analytics.Anybody know how google creating this cookie even browser not supporting cookie creaton.Thanks ...

Jquery cookie plugin - set cookie when user submits form

Hello I would like to set a cookie when a user submits a form. I am working with some legacy code that sets a cookie based on a user checking a checkbox, but would like this to simply set the cookie when a user submits a form. Here is what i have, which works when a checkbox is checked: $().ready(function() { $('.application-form...

How to reliably identify users across Internet?

I know this is a big one. In fact, it may be used for some SO community wiki. Anyways, I am running a website that DOES NOT use explicit authentication of users. It's public as in open to everybody. However, due to the nature of the service, some users need to be locked out due to misbehavior. I am currently blocking IP addresses, but ...

Sitemesh CookieDecoratorMapper xml markup example?

If anyone could show me how to mark up sitemesh.xml for the CookieDecoratorMapper I would appreciate it. Here's what I have now: 1) A cookie named "sitemesh" with a value of "green". 2) A decorator named "decorator-green.jsp". 3) A default decorator named "decorator.jsp". 4) All URLs mapped to decorator.jsp in decorators.xml. 5) The fol...

Problem with sfRemember cookie / sfGuard Remember me

I'm using Symfony 1.4 with Doctrine. Sorry if this is a silly question but what exactly does one need to build on top of the sfDoctrineGuardPlugin to get the "remember me" functionality working? When I login a user, the sfRemember cookie is created with the default 15-day lifetime, and the remember key is saved in the plugin's sf_guard...

IE7 cookies not sticking on browser close. Could it be P3P? How the cookie is set in the Java?

Hey all, I'm having difficulty with getting cookies to stick in IE7. Whenever the browser is closed, the cookie is cleared or not remember when I bring up a new window. I'm have a bad time trying to find the right answer on Google, so I was wondering if anyone could help me out or refer me to a place on the Web with an answer. Thanks. ...

What are the best security measures to take for making certain directories private?

I have a directory on my server that I do not want Search Engines to crawl and I already set this rule in robots.txt I do want people that have logged in to be able to have access to this directory without having to enter a password or anything. I am thinking that a cookie is the best thing to put on users computers after they login, a...

crossdomain cookie using iframe, how?

I searched a lot on this topic, but didn't really found a solid answer to this. I need to set a cookie from any domain (out of my control), lets say "Domain B" to my main domain, lets say "Domain A", and be able to read the cookie also, without exiting Domain B. kinda like Facebook connect for websites, or Snap.com, and others of the ...

Setting a cookie based on the name of the link that is clicked.

TLDR When clicking on a link I want to assign a cookie with a name of instrument and a value of the text on the link clicked. Using Jquery.1.4.2.min.js, Jquery.cookie.1.0.js I am trying to create a cookie when a link is clicked (will always link to "page.html"). name of instrument value of the TEXT So far I am trying to use: <scr...

Bizarre Bug with our Rails app in IE

We're experiencing a really bizarre bug in our Rails 2.3.4 app. This bug only happens in Internet Explorer (7 and 8). Here's what happens: A new customer creates an account at https://domain.com/signup/free (notice no subdomain) Their account is identified by a subdomain like "example.domain.com" After signing up, they get a welcome s...

Looking at the C++ new[] cookie. How portable is this code?

I came up with this as a quick solution to a debugging problem - I have the pointer variable and its type, I know it points to an array of objects allocated on the heap, but I don't know how many. So I wrote this function to look at the cookie that stores the number of bytes when memory is allocated on the heap. template< typename T > i...

How to store user preferences? Cookie becomes bigger..

My application (Asp.Net MVC) has great interaction with the user interface (jQuery/js). For example, setting various searches charts, moving the gadgets on the screen and more .. I of course want to keep all data for each user. So that data will be available from any page in the Dumaine and the user will accepts his preferences. Now I k...

Cookie value to define style on page load

I am using the scripts from here http://www.quirksmode.org/js/cookies.html and have successfully created a cookie.. it is set based on the users response to the age drop down. However I am having trouble doing anything with it. I would like to have a style defined if a cookie is present. Here is the bulk of my scripts.. function crea...

Internet Explorer discards cookie when printing?

I have an unusual issue with this printing under IE7/8 (likely 6 as well). My page contains a dynamically rendered graph. The contents of the graph are determined by the identity of the user who visits the page. The page is not available without prior authentication. The page loads and renders correctly in IE7/8. However, the graph doe...

My cookies won't stay (PHP).

I'm building an autologin system using cookies, but one fundamental part of the functionality of the cookies fails: they are non-persistent over different sessions - or even pages! In my login script, I set the cookies like this: setcookie('userID', $userID, time()+86400); // (edited after replies) $userID has a value. Then I print th...

Cookie Editor for IE?

Hi, I need to manually edit some cookies in IE 7 to do some testing. Firefox has decent CookieEditor plugins available. Have you used any reliable cookie editors for IE? ...

This .NET code snippet will NOT actually create a cookie, right?

I just realized that this cookie is not showing up like it should, and I checked the code which was not written by me but I am pretty sure that this is NOT enough to create a cookie right?? public static void CreateSSOCookies(string tokenID) { System.Web.HttpContext.Current.Response.Cookies["ssocookies"].Doma...