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...
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 ...
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...
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
...
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...
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 ...
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...
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...
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.
...
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...
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 ...
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...
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...
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...
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...
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...
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...
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...
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?
...
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...