cookies

Google Chrome Cookie Issues

I'm testing a site I've built using the latest build of Chrome on Windows 7 and for some reason it is having issues with cookies. From what I can tell the cookies are being set correctly by the php script but then fail some basic validation in my script on the next page load and are then reset to the default setting. What is baffling is...

How can I timeout Client-scoped variables in Coldfusion?

I apologize if this is a "duh" question. It seems like the answer should be easily googleable, but I haven't found it yet. I am working on a large Coldfusion application that stores a large amount of session/user data in the Client scope (ie <cfset Client.UserName = "JoshuaC"> ). I did not write this application, and I don't have the lu...

Setcookie > sniff > output on same page

Hi, I wonder if someone can help shed some light on this: I drop a cookie if a user arrives to the site with a specific key/value in query string. i.e.: http://www.somesite.com?key=hmm01 The cookie code exists at top of the template before <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML ) : <?php header("Content-Type: text/html; charset=utf-...

How do I check if the browser supports cookies, in javascript?

Especially for the iPhone ...

Is it safe to use Request.ApplicationPath for cookie path

Is it safe to use such code? Response.Cookies[cookieName].Path = Request.ApplicationPath + "/"; I want to know about all corner cases, please... ...

CookieContainer with multiple domains

I have a rich client application that connects to a backing web service using ASP.NET web services. The underlying authentication method used for multiple requests is ASP.NET forms authentication (with the .ASPXAUTH cookie) I am extending the client to support communication with a webservice fallback url to provide some level of redund...

How to prevent multiple browser windows from sharing the same session in asp.net.

I have ASP.net application that is basically a data entry screen for a physical inspection process. The users want to be able to have multiple browser windows open and enter data from multiple inspections concurrently. At first I was using cookie based sessions, and obviously this blew up. I switched to using cookie-less sessions, whi...

Understanding NSHTTPCookieStorage for the iPhone

Maybe I'm missing something, but from Apple's documentation for NSHTTPCookieStorage, I can't help but wonder how this is safe to use. Does this mean that cookie storage is shared across all apps on the iPhone? If my app makes an Http call that results in some cookies being saved, do all apps now have access to these cookies? Methods li...

Pixel tracking problem in PHP

Let me first explain what i am trying to do: step 1 : domain-a.com -> cookie is set using a redirecting PHP script(placed on domain-b.com) when a link to domain-b.com is clicked from this domain step 2 : domain-b.com->main website -after a certain browsing user reaches domain-c.com step 3 : domain-c.com -> when user reaches the thank...

Cookie parameter value problem

Hi there I want to use cookie in my project. But now i m using session. And i have some session parameters in .aspx pages.. for example: <SelectParameters> <asp:SessionParameter Name="refKlinik_id" SessionField="refKlinik_id" /> </SelectParameters> Now i want to use Cookie Paramter like that: <SelectParameters> <asp:Cook...

DotNetNuke will not save from editor

A DNN site version 05.02.00(275) When editing a HTML module the following happens: If I make the changes and save before the cookie "portalaliasid" expires (within 1 minute) all is well. BUT if I stay in the editor for a longer time, say 2 minutes, and posting I end up at the editor again with the old content. All my previous work is lo...

How can i see cookie folder

Hi there When i serialize a value and stored in a cookie, i can see cookie text file in Cookies folder. But if i dont serialize that value, i can't see cookie text file. There is my code: (Serialize) BinaryFormatter bf = new BinaryFormatter(); MemoryStream ms = new MemoryStream(); bf.Serialize(ms, "111"); byte[] bArr = ms.ToA...

jQuery Toggle with Cookie

I have the following toggle system, but I want it to remember what was open/closed using the jQuery cookie plugin. So for example if I open a toggle and then navigate away from the page, when I come back it should be still open. By default all Toggles should be closed. This is code I have so far, but it's becoming rather confusing, some...

jquery toggle with cookie quick help

Hopefully a quick fix after spending quite a few hours trying to get this to work: Basically I to ONLY add the class "active" to .trigger anchor when when it has either been clicked or the cookie has made it open. And when the anchor is clicked again to close the container remove the class "active". Here is my code. Thanks. $(document...

Javascript cookie not working on form submit

I have a form like this: <form id="loginCompact" action="https://ppe.gamingsystem.net/customerauthn/pl/login" name="sportsbook" method="post" onsubmit="createCookie('BRLOG', document.sportsbook.username.value, 1)"> <input type="text" name="username" class="loginUsername" /> ...other fields... </form> And this is the Javascript...

Run php in Drupal template uncached

Hi. I need to run a php code snippet in a Drupal template and not have it cached. The php snippet sniffs for a cookie and if found returns one of messages according to the cookie value. ie: if(isset($_GET['key'])) { $cookievalue = $_GET['key']; } if(isset($_COOKIE['cookname'])) { $cookievalue = $_COOKIE['cookname']; } switch ($cookie...

How to remember last state with Jquery?

I have a menu with submenus that can be toggled (hide/show type deal). Is there a relatively easy way to remember last state of the menu? (I hide/show submenu when clicking on a header and change a style of the header so the background arrow will change (up/down)). It works fine, but I'd like it to remember last state, so when user goes ...

[Java] Send cookie with http request problem

I'm trying to get a certain cookie in a java client by creating a series of Http requests. It looks like I'm getting a valid cookie from the server but when I'm sending out a request to the fnal url with the seemingly valid cookie I should get some lines of xml in the response but the response is blank because the cookie isw rong or is i...

Webbrowser control and cookies

Hello! I have a webbrowser control in my program and what I want to do is to delete all the cookies stored in my computer. The problem is that for example I'm in some site, and then I decide I want to delete all the cookies, so I do it by the command "Kill()" but the problem is that the cookies remain and this site still can recognize me...

Google App Engine - Secure Cookies

I'd been searching for a way to do cookie based authentication/sessions in Google App Engine because I don't like the idea of memcache based sessions, and I also don't like the idea of forcing users to create google accounts just to use a website. I stumbled across someone's posting that mentioned some signed cookie functions from the To...