cookies

Pass HTML form entries into a Javascript array to then be written to a client side cookie?

I'm building a bit of a test-case JS application, something very basic, but have run into some problems. I'm trying to use a HTML form for a user to enter a number, which is then written to a Javascript Array. The user then has the option to write that same array to a local (client side) cookie. (I understand the security implications ...

How to store parts of form-data when they're on separate pages?

Whenever I'm to prepare a long form for the client I always want to split it into separate pages, so the visitor doesn't have to fill it all, but does it in steps. Something like: Step 1 > Step 2 > Step 3 > Thank You! I've never done it for one reason: I don't know how to store the data from separate steps efficiently? By efficien...

What happens to an http Request when the user leaves page in the meantime?

I'd like to keep some information on the client which element was clicked and thus save the information within a cookie, but it's a third party cookie because I need this information on antoher page (affiliate-tracking is the context) so I'd have to set it via http request as far as I see it. Javascript would only allow me to place a wit...

Android WebView Cookie Problem

I have a server that sends my android app a session cookie to be used for authenticated communication. I am trying to load a WebView with a URL pointing to that same server and I'm trying to pass in the session cookie for authentication. I am observing that it works intermittently but I have no idea why. I use the same session coo...

Last Five Pages Visited Cookie with php+jquery

how to show Last Five Pages Visited Cookie with php jquery. ...

How do I send the jsessionid via POST using hidden inputs when cookies are disabled in JSP?

Is there any way to send JSESSIONID via hidden inputs? Something like <input type="hidden" name="JSESSIONID" value="<%= session.getId() %>"/> I tried everything but nothing seems to be working. It works if I directly access the other page with www.example.com/app/q.jsp;jsessionid=CC7A1A07E117B66F4C5D8910F4F138F3 ...

PHP not able to set cookies through Nginx

I've got a PHP-fpm setup on nginx setup according to this article: http://interfacelab.com/nginx-php-fpm-apc-awesome/ PHP is not able to set cookies in any browser visiting the server. It seems nginx is not passing on the Cookie header to the browser. I Googled around a bit, and found that I need to set fastcgi_pass_header Set-Cookie in...

Coldfusion Session Cookie

I am trying to delete the clientside session cookie when I access a certain page. How do I do this? ...

ASP.NET MVC FormsAuthentication Cookie timeout cannot be increased

Using the default ASP.NET MVC template, I cannot figure out how to increase the FormsAuthentication timeout. It seems to always use 30 minutes. I have followed Scott Gu's recommendation from this blog post, but it does not seem to make a difference. Does anyone have a suggestion? His suggestion was to set the timeout value in the web...

How to set a cookie that is only valid for a specific domain like example.com but not its sub-domains?

Hi, if I have a domain example.com, is there any way to make cookies valid only for that specific domain and not for sub-domains like www.example.com? I know I can set it to only www.example.com, but can it be without a sub-domain? ...

How to delete a certain IE cookie from python?

Hello, how can I delete IE 8 cookies for a certain site from Python? TIA ...

GWT Cookies.getCookie returns "null"

Update: I tried clearing the created cookie in the browser and trying it again, and it didn't happen. Conceivably I set a cookie with the value "null" at some point. (Ok, this is probably a retorical question, so I'm making it CW) The documentation for Google Web Toolkit says this about Cookies.getCookie: public static java.lang....

Problem logging out from Oracle SSO

I’m building a J2EE web application which uses Oracle SSO with an OID back-end as the means for authenticating users. If a user wants to use the application, first he must provide a valid login/password at SSO's login page. When the user is done using the application, he may click on the logout button; behind the scenes, the action ass...

ASP.NET Forms Authentication Ticket Timeout

Hi, Whats the best way to create a custom ASP.NET forms authentication ticket with a specified timeout? The timeout value is coming from a database not the web.config. Thanks ...

curl not storing cookies

I'm building a web bot to login into some of my accounts on websites but one of the url's are sending cookie from javascript and curl is unable to store them. Any suggestion? ...

Change in Machine Key causes IE login cookie to stop working

I just moved to new servers and created a new machine key for all servers in the farm. Since then IE has been giving problems with the login cookies and even if the login username and password are correct, it doesn't let the user login. The only way you can login is by clearing IE8 cache from the IE8 development tools. Is it possible t...

HttpCookie with Expires set returns DateTime.MinValue

I'm seeing something of an oddity when setting a cookie... Action: string cookieName = "foo"; string cookieValue = "bar"; //Set a cookie in the response, along with the Expires. this.ControllerContext.HttpContext.Response.Cookies.Add( new HttpCookie(cookieName, cookieValue) { Expires = DateTime.Now.AddHours(1) } ); When de...

What's the difference between "domain" and "non-domain" cookies?

I'm reading the MDC entry for nsICookieManager2.add and it talks about domain and non-domain cookies. What are the differences between the two types of cookies? ...

Domains and cookie accessibility

If I am hitting www.foo.com and am writing some cookies there, will I have access to those cookies if I hit the same code base from www2.foo.com? Or does the cross-domain cookie security come into play with sub-domains as well? ...

Array to store in Cookie (JS)

On a site I'm coding, there's a Partners page that contains, amongst other things, a phone number for that business to view. My boss wants this phone number to be hidden then, upon being clicked, appear (I'll fade it in with jQuery) and then log the click. This will allow him to keep track of the amount of people that have shown interes...