cookies

How do I use cookies across two different domains?

I need to share SSO information between two different domains with a cookie, can this be done in PHP and how? ...

php/pear package for "remember me on this computer"

I know this is usually done with cookies, but I am getting unpredictable results on different browsers and decided to look for a pear package that focuses on this. Just wondering if there's a package (HTTP_Client for example?) that anyone has had success using for this particular situation. Or actually, do people never or rarely have p...

Session cookie lost with IE7

I have an ASP.NET 2.0 application. The login page redirects twice when the login is successful. This works OK on all test environment and production servers except one. We can see with Fiddler that the login redirects to the second page and it redirects to the third. When getting to the third page the authentication cookie is lost, and t...

ASP-MVC Forms authentication - cookie not persisting

Hi I have my own linq to sql database with a nice login method which gives me back a user. I have followed the 101 examples there on the web as to how to add the cookie to the client. FormsAuthenticationTicket ticket = new FormsAuthenticationTicket( 1, _u.id.ToString(), Dat...

Why does Chrome ignore local jQuery cookies?

I am using the jQuery Cookie plugin (download and demo and source code with comments) to set and read a cookie. I'm developing the page on my local machine. The following code will successfully set a cookie in FireFox 3, IE 7, and Safari (PC). But if the browser is Google Chrome AND the page is a local file, it does not work. $.cookie(...

Best method of tracking users for unique visitor reporting using .NET?

I would normally use Google analytics because it is free and simple to implement but on this occasion we need an internally built reporting system. This system needs to be in .NET only because JavaScript is not an option. My question is how do you track unique visitors when you can never be sure that they have cookies turned on? I was ...

Cookie path special characters

My application needs to set cookies for specific paths in the application. For example (in php): setcookie(*cookie_name*,*value*,*date*,"/subpath/subpath/unique_name"); setcookie(*cookie_name*,*value*,*date*,"/subpath/subpath/another unique name"); Oddly enough, the first setcookie works fine. The second doesn't generate an error and ...

Set cookies in a php cgi enviroment without using php api

How can I use cookies in a php CGI Enviroment without using any api functions from PHP? ...

Set Cookie from VBA

How can I set and get a cookie from within VBA code? Of course this is assuming I am not running server side scripting of any kind. ...

JSON to string in Prototype

The people on this website seem to know everything so I figured I would ask this just in case: Is there a method/function in prototype that converts a JSON object to a string that you can store in a cookie? If not,..i'll just use another external library. Thanks, Andrww ...

ASP.Net session and cookies for keeping someone logged in...

I've got an existing site I'm taking over, and right now it stores, in a session variable, the id of the currently logged in user (if logged in at all -- otherwise I'm sure it is empty string or null or something). The client now wants, after someone is logged in, to "keep" them logged in on that computer for an indefinite amount of tim...

Use cookies without sending them back to the server

I need a way to stash some data that is global to the browser. If I open a new window with a URL from my app, e.g. via a bookmark, I need to access some data that was created in another window and never sent to the server. As far as I can tell the only thing that is global to the browser and not just a window, (like window.name), is a ...

PHP: Cookie domain / subdomain control.

Hi All, I'm working on a site with multiple subdomains, some of which should get their own session. I think I've got it worked out, but have noticed something about cookie handling that I don't understand. I don't see anything in the docs that explains it, so thought I would see if anyone here has some light to shed on the question. ...

Persistent cookies from a servlet in IE

I have a cookie which is generated from a servlet and that I would like to be persistent - that is, set the cookie, close down IE, start it back up, and still be able to read the cookie. The code that I'm using is the following: HttpServletResponse response = (HttpServletResponse) FacesContext.getCurrentInstance() .getExterna...

Code is HttpClient or servlet API to parse Cookie header

Is there any existing code in Apache HttpClient or in the servlet API to parse Cookie header and obtain from a string that contains "name1=value1; name2=value2; ..." a list of Cookie? Writing code to parse this doesn't seem too hard, but if there is already some existing code, I'd like to use it. ...

Server Side Cookie Injection

I have an app that is a combination of asp/asp.net, and both sides depend on the same cookies (they are in the same domain). There are some values in the cookies that I don't want going to the client anymore due to security concerns. What I was hoping to accomplish is to take out these values so they no longer go to the client, and the...

Cookies across subdomains and hosts

In the application I'm writing using a combination of development environments and languages, I have need of accessing a cookie from two different subdomains, each on a separate host. The cookie is being set on www.mydomain.com using the PHP code that follows, and I'm attempting to access it from distant.mydomain.com on a separate host....

Remove or Reset Cookies

I am setting a cookie Request.Cookies("TemplateName").value on one of my pages(page 3) of my application. Now I can navigate from page 3 to page 4 and page 2 and retain the value of the cookie. But now when I logout and login again it still has the value, how can I reset the value of the cookie to be blank "" when I start a new instance?...

Cookie blocked/not saved in IFRAME in Internet Explorer

I have two websites, let's say they're example.com and anotherexample.net. On anotherexample.net/page.html, I have an IFRAME SRC="http://example.com/someform.asp". That IFRAME displays a form for the user to fill out and submit to http://example.com/process.asp. When I open the form ("someform.asp") in its own browser window, all works w...

Why won't asp.net create cookies in localhost?

Okay, this is really kinda starting to bug me. I have a simple Web project setup located at: "C:\Projects\MyTestProject\". In IIS on my machine, I have mapped a virtual directory to this location so I can run my sites locally (I understand I can run it from Visual Studio, I like this method better). I have named this virtual directory...