cookies

how to remove cookie in firefox?

i have created a cookie with: $domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP_HOST'] : false; setcookie('cookiename', 'data', time()+60*60*24*365, '/', $domain, false); but how do i delete it? i tried with just switching the + to - but it didnt work. $domain = ($_SERVER['HTTP_HOST'] != 'localhost') ? $_SERVER['HTTP...

why cant i create cookies in Firefox?

I cant create a firefox cookie with following line: setcookie("TestCookie", $value, time()+3600, "/", "localhost"); does someone know why? i have checked the settings in FF and it accepts cookies from 3rd parties and are deleted when they expire. EDIT: i can create now with this line: $domain = ($_SERVER['HTTP_HOST'] != 'localho...

Session and cookie in same PHP file?

Can't I set session and cookie in same PHP file? I get an error message if I set the cookie after I've set session telling me that the header is already sent. If I set session after cookie I get nothing but it seems not to work well. ...

Keeping session alive C#

I'm using HttpWebRequest to log on to a website and get the session cookie. My application scrapes certain pages, and eventually becomes idle, resulting in the session dying. What would be a good way to prevent this and -just being curious- how do web browsers do it? ...

Accessing SharePoint authentication information from .NET ActiveX control

We have a .NET ActiveX control which is embedded inside a custom SharePoint page. The user has to authenticate (Windows Authentication not Forms Authentication) to access this page. Our ActiveX control is making web service calls back to the SharePoint server. Because the SharePoint server does not allow anonymous access, we need to p...

Storing "favorites" in a Rails cookie ?

I'm trying to run my site off the lazy idea of not having user registrations. Anyway, I want a user to be able to "favorite" items on the site when they click "favorite" off of an "item" I'm assuming I need to use cookies for this but I don't really know the next step. Could anyone point me in the right direction? Thanks! ...

Cookie slows down my website on first start, always like this?

As soon as I implemented only one cookie into my website, the entire website became very slow on first start. I guess it's because it is fetching the cookie information. But is this always the case? There is no heavy code behind fetching the cookie, just plain simple php like this: $arr = $_COOKIE['name']; // array maximum of 10 val...

ajax call through cas

I need to write a google gadget that reads feeds from google groups. Trouble is I'm making an ajax call to retrieve the feeds and our google apps domain is protected by CAS (central authentication service). So, I'm getting a 400 bad request on making the call. I suspect that the browser is not sending the cookie when making ajax call. H...

What is a Coldfusion Session?

I've used Coldfusion sessions for quite a while, so I know how they are used, but now I need to know how they work, so that I can plan for scaling my website. Is a Coldfusion user 'session' simply a quick method to setup 2 cookies (CFTOKEN and CFID) and an associated server side memory structure? (the SESSION scope) Does it do anything ...

Cookies...Http POST doesn't correctly work, why?

Probably this is often problem, but I can't solve it. I need to automaticallly fill out some fields on the web form, which is given from server. I use Apache HttpClient to make more easy my life) By now, one can consider my steps to acheive the aim: 1. I have not certificate to http://trac.edgewall.org/ so I download this software and...

IP.Board 3 Cookies

I am integrating a custom written CMS with IP.Board 3. I would like to use the cookie information (username) that IP.Board stores upon login. Does anyone know how I can access that cookie? This would be in PHP, of course. ...

Cookie: ASP.NET SessionId Issue

I have a load generator that appends a ASP.NET_SessionId to the Cookie when making a Soap test call from Machine A to Machine B. Cookie: ASP.NET_SessionId=gf0ouay24sdneiuicpiggn45; However, when I'm running the soap test hitting my local server it doesn't have an ASP.NET_Session variable in the cookie. Why is this happening? UPDATE:...

Tracking and logging anonymous users

If you let anonymous users vote for any post on a site just one time and you log that vote by the user's IP, what's the likelihood that you'd be banning other users from voting and that the original user would be able to vote again after a certain amount of time because their IP address has changed? I'm guessing almost certainly. Client...

javascript cookie, little help please...

I am displaying a div on my site, and I want to only display this div 5 times that the user has visited my site. So after 5 times, it wont show the div anymore. I can do it with cookies. But Im only familiar with PHP. Javascript isn't my strong side. Does anybody have a short piece of code to set a cookie, increase it for every visit, ...

Are Cookies set on client sent to Web Server between AJAX requests?

basically i am setting cookie values on the client side (just session cookies, without any expiry date) and i am making ajax requests, now, in my ajax requests, i never get the updated cookie value as i've set in the client using javascript. so, do ajax requests ignore sending updated cookie values from teh client to the server? or what...

trying to wget my stock portfolio

I'm trying to read my stock portfolio into a script. The following works with NAB Online Trading but not Bell Direct. install the Export Domain Cookies Firefox addon log in to my online broker with Firefox save the domain cookies to a file (eg cookies.txt) wget --no-check-certificate --load-cookies=cookies.txt -O folio.htm https://...(...

How can I programmatically fill out the web form with JAVA?

I just need filling out web form programmatically with java. I use Apache HttpClient 4.0.1. Form looks like this: http://i046.radikal.ru/0912/fd/bcc149cf3b50.png HTML code of it looks like this:(any tags can not be shown ) DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" S...

ASPXAUTH cookie is not being saved.

Hi, Im working on a web project in ASP .NET MVC 2. In this project we store some info inside an ecripted cookie (the ASPXAUTH cookie) to avoid the need to query the db for every request. The thing is the code for this part has suddenly stopped working. I reviewed the changes made to the code on the source control server for anything ...

cookie in javascript and php

Can I set a multi-dimensional array 30x200 in JavaScript as a cookie and then read it back in PHP? ...

Understanding web app authentication scenario - How do they force authentication on each new browser instance?

I use a web application that forces you to reauthenticate with the application even if you open a new browser window that shares the same session, e.g. File, New Window in Internet Explorer. I was surprised since I thought that if you opened a new browser window from File, New in both IE and Firefox (vs. starting a new browser process) ...