cookies

Update cookie expires without any change in the value

How can i simply update the expiry of a cookie on each page request without having any impact on its value ? ...

How can I encrypt a cookie content in a simple way in C# 3.0?

Hi everyone! How can I encrypt a cookie in a direct and simple way? Thanks!! ...

How do I distinguish between duplicate cookies?

I am observing, on both Firefox and IE, that if I have a cookie 'x' on the domain a.b.c.com, and also have a cookie with the same name 'x' on domain a.b.com, then when I look at the value of document.cookie on the a.b.c.com domain, it shows both cookies. I would like to see just the cookie from the a.b.c.com domain, and not the one from...

PHP Sessions/cookies not storing correctly when using IE6/IE7

Hi guys, We have a local intranet site that everyone on the network uses, maybe 5% (or even less) of the users that use the site have problems where the session isn't stored properly. I've tried defining a path manually (C:/Coookieess) and checking to see what's going on, and whereas most users sessions are created and remain just fine...

How can I disable URL-encoding of cookies in Rails

I have a Rails application that has to co-exist with a very old legacy application. The legacy application looks for a cookie that has a value containing a specific string of characters. Unfortunately, the characters in the legacy cookie often contain slashes. The problem I have is that when the Rails application writes the cookie it ...

Reading a cookie from a WCF RESTful webservice

Writing a suite of IIS hosted WCF webservices (both GET and POST), and I need to be able to read a cookie for an authentication token so I know the user has been auth'd previously. Will HttpContext.Current.Cookies give me what I need or is there something cleaner and more appropriate for a WCF web service with WebGet and WebInvoke attri...

Is there any thing similar to HttpURLConnection in Perl?

I want to create an HTTPURLConnection to a PHP script and get the HTTP response returned by the script. Is there a way to do this in Perl? In short i want Perl equivalent to following: java.net.URL url = new java.net.URL(urlPath); java.net.HttpURLConnection conn = (java.net.HttpURLConnection) url.openConnection(...

in a website, setting one cookie is better than setting many single cookies?

Hi, Suppose that you have to set 12 cookies, would it be better to store all of their values in a single "big" cookie or store each value on its own cookie? I want to know if that improves website speed. Thanks. ...

use string in a $_COOKIE[] ?

so is there any way to do it. i want to put a string as the cookie name instead of a definite cookie name? ...

Is requiring a REST api request to include a cookie a good idea?

My idea is to treat URI's in my rest api as a unique resource, except in the context of the client's location, which is stored in a cookie. Are there any downsides to this approach? ...

Retrieve cookie created using javascript in python

I've had a look at many tutorials regarding cookiejar, but my problem is that the webpage that i want to scape creates the cookie using javascript and I can't seem to retrieve the cookie. Does anybody have a solution to this problem? ...

Fake a cookie to scrape a site in python

The site that I'm trying to scrape uses js to create a cookie. What I was thinking was that I can create a cookie in python and then use that cookie to scrape the site. However, I don't know any way of doing that. Does anybody have any ideas? ...

Cookie Testing for payment gateways.

While testing the payment gateway for some eCommerce site, is there any way to check if the cookies are saving the user's credit card details? If so, can we verify if they are in encrypted form? ...

Is there any way to communicate between my .exe application and Firefox?

Hi, Is there any way to communicate between my .exe application and Firefox? Because, I have my own webpage. I'm using FireFox to browse it. I have an application (in c++) to process a piece of HTML code from my webpage within FireFox. My application can print something directly to printer (raw print). Since now, I coudn't access fi...

Why won't my cookie value change in PHP 5?

Hi, I have a website where the login info is optionally saved in a cookie (remember me checkbox at login) and when the user logs out, the value of the authentication cookie won't change to expire the cookie allowing logout. The system does work correctly in both the dev and staging servers but for some reason will not work on our produc...

How to let Curl use same cookie as the browser from PHP

I have a PHP script that does an HTTP request on behalf of the browser and the outputs the response to the browser. Problem is when I click the links from the browser on this page it complains about cookie variables. I'm assuming it needs the browsers cookie(s) for the site. how can I intercept and forward it to the remote site? ...

Selenium RC - disabling browser cookie

Is it possible to disable a browser cookie using selenium, RC specifically? If so, what is the api call or sequence of calls to make this happen. There is a feature being tested where theres a need to verify the behavior when cookies are enabled or disabled. Thanks ...

Cookie sniffer - PHP

I guys. Have worked around with cookies in PHP for some time. However something came to my mind. Does its possible to gather all cookies (without knowing its names), or at least list all cookies names present in a browser? Regards. ...

Can One Domain Have Multiple Cookies?

Can one domain generate multiple cookies on visitor's web browser? If so, when user vists the website, which cookies will be delivered to server? And why would a website generate multiple cookies? I checked my Google Chrome Browser's Cookies settings, found that there are multiple cookies of nytimes.com. If server wants to store multip...

How do I prevent browsers from storing cookies?

I have a webpage that plays about 15 videos at any given time. The videos change on a weekly basis, which are loaded from an external XML file. Please look at the site here www.hqwebvideos.com The problem is that when my prospects view my site for the 2nd or third or fourth time, the previous XML video data is stored in their cache. ...