cookies

PHP: how to save cookies for remote web pages ?

Hiya - I've got a PHP application which needs to grab the contents from another web page, and the web page I'm reading needs a cookie. I've found info on how to make this call once i have the cookie ( http://groups.google.com/group/comp.lang.php/msg/4f618114ab15ae2a ), however I've no idea how to generate the cookie, or how / where the ...

Besides URL rewriting, what options are available for maintaining sessions without using cookies?

I've seen various options for URL rewriting here on Stack Overflow, and other places on the web, but was curious to see if there were other options. ...

What is the "best" way to get and set a single cookie value using JavaScript

I want to increment a cookie value every time a page is referenced even if the page is loaded from cache. What is the "best" or most concise way to implement this? ...

What's your favorite cross domain cookie sharing approach?

I see iframe/p3p trick is the most popular one around, but I personally don't like it because javascript + hidden fields + frame really make it look like a hack job. I've also come across a master-slave approach using web service to communicate (http://www.15seconds.com/issue/971108.htm) and it seems better because it's transparent to th...

Image caching, HTTPHandler and FormsAuthentication

The Setup: I'm working on a website that uses Formsauthentication using cookies to store the login ticket. The site also has an HTTPHandler that manages images stored in the database. The handler caches the images to be public and expire in 20 minutes. We have noticed that since the images have the same lifecycle as a page the images...

How to change FormsCookieName at runtime in ASP.NET

Hi, We would like to have the FormsCookieName of FormsCookiePath change per instance of our application. We have an application which has multiple instances on 1 server/domainname. Because of this we can only work in 1 application at the same time, since the cookies will overwrite eachother. Same for the Sessions btw. Is there a way to...

How to find the cookie blocked using java script code

How to find the cookie blocked using java script code ...

Cannot turn off persistent tracking cookies in CFMX 8

CFMX 8 Enterprise I have turned on the "Use J2EE session variables" setting under Memory Variables because security requirements state that persistent cookies cannot be used. I understood that turning this setting on will tell CF to only create a use a "JSESSIONID" session cookie. However, my server still appears to be creating and us...

Reading an email string from a cookie in java

Hello all, My application needs to store the users email address in a cookie so that I can pre-populate a login form (username == email address). I set the cookie value in JavaScript. If I read it from JavaScript, I get "[email protected]". If I look at it in the cookie viewer in Firefox I get "[email protected]". When I try to read it on the serv...

Access Response Object in a class ASP.NET

I have a function that checks if a cookie (by name) exists or not: Private Function cookieExists(ByVal cName As String) As Boolean For Each c As HttpCookie In Response.Cookies If c.Name = cName Then Return True Next Return False End Function I have a class that handles cookies in an application-specific manner, and I ...

Maximum number of cookies allowed

As far as Google searches tell me, the maximum allowed number of cookies depends very much on the browser, however I cannot find any recent data as to how much cookies are allowed on modern browsers. I need to store a somewhat large number of user preferences in cookies (for not-yet-registered users), so what would be the best way of do...

How do I check if session cookies are enabled in Classic ASP?

What's an elegant way in Classic ASP to check if session cookies are enabled in a user's browser using server side code (because javascript might be disabled as well). I have a solution of my own but it looks ugly as hell. @James - that doesn't differentiate between setting a session cookie and a general purpose cookie though (IE lets ...

How can I make cookies in my Flash application?

How can I make cookies in my Flash application using ActionScript 2.0? ...

Separate Applications Sharing the Same ASP.Net Session Cookie

I've got two ASP.Net applications residing in two different folders on my server: /Foo <-- this is the standard unsecure application /Secure <-- this is a separate application that requires SSL by IIS The problem is that by default, the ASP.NET_SessionId cookie is specified on the domain and is shared between the two applications in ...

Cookies in Firefox

Where does Firefox store cookies and in what format are they stored ...

Problem with sending cookies with file_get_contents

Hi, i'm trying to get the contents from another file with file_get_contents (don't ask why). I have two files: test1.php and test2.php. Test1.php returns a string, bases on the user that is logged in. Test2.php tries to get the contents of test1.php and is being executed by the browser, thus getting the cookies. To send the cookies wi...

Exists a way to prevent cookies from getting stolen?

Hi, in Web 2.0 applications many users usually want to stay logged in ('remember me' flag) and on the other hand their cookie can give access to very private data. Is there a way to prevent that somebody who steals the cookie - directly from the computer or via sniffing - can use the cookie to get access to the user's data? Always HTTPS...

Cookie problems with virtual directories in IIS (deleting unwanted cookies)

I've just had a small nightmare with unwanted cookies somehow being created. I swear my code never created a cookie in a certain virtual directory, it just read it, but somehow my browser ended up with a root cookie and a copy of this cookie for the vdir too. Which meant the two values were separate and did not both get updated. Most ar...

Why cant I find my cookies in Temporary Internet Files?

I'm trying to convert a cookie from www.example.com to .example.com. So I thought I'd go to C:\Users\SWEAVER\AppData\Local\Microsoft\Windows\Temporary Internet Files and just delete the cookie there. To my surprise there were not only no temporary internet files (images/html...) but also very few cookies. And of course the cookie for...

How do you disable cookies in Internet Explorer 7?

I've tried disabling cookies in Internet Explorer 7, I've changed the settings under Internet Options->Privacy and this did nothing, when I reloaded the page. I read somewhere that you need to restart IE7, than physically delete the Internet cache and cookie files first, and finally reload your page to disable cookies. (I also had no l...