cookies

ASP.NET Cookie not set when using https

I have an ASP.NET application which stores a "Remember Me" token as a cookie; it worked fine until I implemented SSL. Using FireCookies, I never see my cookie (named "_rmtoken") though ".ASPXAUTH", "ASP.NET_SessionId" and other cookies do show up. Here is the code I use to set the cookie: public static void SetRememberMeCookie(Htt...

How to Create 'Remember Me' using jquery , store cookies

How to Create 'Remember Me' using Javascript , store cookies any help is appreciated ...

Need the Javascript equivalent of this C# code to add values to a cookie

I need some help creating the necessary Javascript to add values to an existing cookie. I know how to do it in c#, but it needs to be done in Javascript in this scenario. This is the C# Code: HttpCookie myCookie = HttpContext.Current.Request.Cookies["SiteSettings"]; myCookie.Values.Add(varName, varValue); myCookie.Expires = DateTime.No...

Setting a cookie with jQuery Cookie plugin?

Hello all. I am trying to create a popup ad with a custom lightbox feel and I can get the popup to work, but it is not setting the cookie. Any ideas on what this could be? Since the code is so long, I am posting it as a GitHub Gist here: http://gist.github.com/501348 Thanks in advance all, Josh ...

Is this true about cookies in PHP?

Is it true that if a script sets a cookie and if the user's browser is set to not accept cookies, then the set cookie function will detect this and instead set a session? ...

what is crossdomain cookies? are they really useful ? if so when is it used

What is a crossdomain cookie ? what are they meant for ? Can you give some senarios where crossdomain cookies are useful. Would appreciate for in depth explanation. ...

How to send a cookie along with HttpGet in Java

I am trying to send a cookie along with my HttpGet request, but everytime I try I havent been able to successfully send it. I also tried to modify the headers directly, here is my code: DefaultHttpClient httpclient = new DefaultHttpClient(); CookieStore store = new BasicCookieStore(); store.addCookie(Authentication....

How to save this attribute to a cookie (after using javascript to alter div's attribute)

I have javascript code which alters the width of a specified DIV. It is attached to a button so each button click adds 50px to the width attribute. But when the page is refreshed on the browser the div attribute goes back to what it was originally. This is the setWidth function: function setWidth(){ jQuery('.tab_panel').each(function()...

Capturing cookie responses in C#

Using Web Browser control or http request in C#, when a website creates a cookie (or tries to), is there a way to capture and display that cookie? ...

Creating a cookie using PHP but having difficulty reading from javascript

I have set my cookie in PHP using the following: setcookie("id", 100, time()+100000, "/AP", "www.mydomain.com", 0, true); When I look at the cookies stored in the browser it looks like this: Name: id Content: 100 Domain: .www.mydomain.com Path: /AP Notice the . in the Domain When I set a cookie in javascript I get the same ...

Get and Set a Single Cookie with Node.js HTTP Server

I want to be able to set a single cookie, and read that single cookie with each request made to the nodejs server instance. Can it be done in a few lines of code, without the need to pull in a third party lib? var http = require('http'); http.createServer(function (request, response) { response.writeHead(200, {'Content-Type': 'text/p...

Windows Phone 7 clear cookies

Is there any possibility to clear cookies generated by WebBrowser control in Silverlight on Windows Phone 7? ...

Is the Apache ISAPI Redirector Chopping Off Cookie Data?

I have a question about processing within the ISAPI Redirector, in the AJP13 processing in particular is where my situation is occurring. At least that is what I think based upon what I am getting from the logs. First let me describe my setup/config/platform. I am running Tomcat 6.0 (file version 2.0.4.0 per the 'tomcat6.exe' properties...

How can I list all cookies for the current page with Javascript?

Is there any way to, with help of Javascript, list all cookies associated with the current page? That is, if I don't know the names of the cookies but want to retrieve all the information they contain. ...

Evaluation: odd session management in web-based application

I've been looking into a legacy application with a web-based user interface. Given its age (nearly 10 years some parts) there's a lot that needs updating and re-architecting, but I'm wondering about a small point regarding how user sessions work. In a nutshell: The entire UI is served via HTTPS. Users are authenticated unremarkably by...

how to setCookie and getCookie using domain name

when i save cookie, it stored with the current URL link., also when i get cookie that search for the current URL only. i need to save and retrieve cookies with my own defined URL links. can you help me ...

Why is Cookie available in Request immediately after setting using Response?

In pageload, if you do Response.Cookies.Add(..., immediately in the next line, you can access that cookie via Request.Cookies(... I know that under the covers, the cookie is added to Request.Cookies by .net, but the original request never had that cookie. If what I'm saying is correct, why is it this way? Shouldn't the cookie be avail...

How to implement cookies in Ruby Net::HTTP

That's my code. Now I need to SEND a cookie to the host but I can't find a solution. def get_network_file(url=nil) begin http = Net::HTTP.new( @service_server, 80 ) resp, data = http.get( url, { "Accept-Language" => @locale } ) if resp.code.to_i != 200 RAILS_DEFAULT_LOGGER.error "*** return code != 200. code = #{...

Session Expire Filter forces user to clear browser history ( cookies ) when timeout occurs.

My ASP.NET 3.5sp1 MVC app uses the following filter attribute class to implement session timeout behavior. It does work to an extent in that it takes user to the login page and forces login however when the filter is executed again it always detects a timeout and returns user to the login page. The only way to proced is to clear the brow...

Java Cookie add/remove problem?

Hi all, My problem with cookies are in following I'm try to add new cookie and few lines after I'm going to read all cookies and to make new object and to assign it to Spring View, problem is that mine cookies are not added, everything works after page reload but not in same time... Cookie[] cookies = request.getCookies(); if (cook...