cookies

Cookie Domain Precedence?

I have a few sites. Each site is a localized version serving up content specific to the a given set of locales. There is also a World Wide or "Global" site. I have them setup as follows: http://mydomain.com http://us.mydomain.com http://uk.mydomain.com etc... I am trying to track activity on each application using a cookie. The c...

ASP.NET MVC - Secure Temporary Storage of Credit Card Data

I have a checkout process for a shopping cart that is currently storing credit card data in the session for retrieval once the user finalizes the purchase. The purchase process is set up such that the user inputs the credit card, views a confirmation page, and then finalizes the order. The confirmation and finalization actions are the on...

ASP.NET AJAX, WebSeal Junctions, and Sessions

I've run up across a problem with ASP.NET AJAX (hooked up to WebServices directly) and accessing our site through a WebSeal junction. Listing 11. On this page; http://www.ibm.com/developerworks/tivoli/library/t-ajaxtam/index.html explains that requests to pages which do not result in a content type of text/html are not sent with cookie...

How to Make Browser Detect Concurrent Loggin into 2 A/C

I am playing a browser based online game and is wondering how it can detect I am trying to login using 2 separate accounts on the same machine. I've tested a few things. First it is not based on detecting same IP since I can login concurrently using firefox/IE and it wont be a good idea to ban users sharing the same IP using a router (...

Deleting a cookie in Javascript does not work consistently

I have the following code to set, get, and delete cookies: function set_cookie( name, value, expires, path, domain, secure ) { var today = new Date(); today.setTime( today.getTime() ); if ( expires ) { expires = expires * 1000 * 60 * 60 * 24; } var expires_date = new Date( today.getTime() + (expires) ); document.cookie...

Help with jQuery toggle & cookies

Hi All I'm working on a toggle view script, which flips between 2 views (grid & list). I have it all working fine so far, but I'm trying to use a cookie to remember the users selection on page refreshes (using a jQuery cookie plugin). However, if the view is in the altered state, it takes 2 clicks to get it to change the next time. var...

if cookies are disabled, does asp.net store the cookie as a session cookie instead or not?

basically, if cookeis are disabled on the client, im wondering if this... dim newCookie = New HttpCookie("cookieName", "cookieValue") newCookie.Expires = DateTime.Now.AddDays(1) response.cookies.add(newCookie) notice i set a date, so it should be stored on disk, if cookies are disabled does asp.net automatically store this cookie as...

how to store an array in jquery cookie?

Hi, I need to store an array in a jQuery cookie, any one help me please? ...

Web Dev - Where to store state of a shopping-cart-like object using jquery cookie plugn

this is my sample code var myCookie; var initial_arr = new Array(); var myCookie_arr = new Array(); var cookieItem; $(function() { ... /* This quite works but can't actually achieve what I want */ $('#add_item').click(function(){ initial_arr.push(msg.txt); ...

How to enable cookies for a pseudo-browser in Delphi?

I was testing an app from Marco Cantu's Delphi 2009 Handbook. This app, called AnonAjax (page 200), has some interesting features to recognize certain elements from a Web page and list them. This app uses anonymous methods with an internal Indy HTTP client component used to access to a given URL. As part of this app's functionality, it l...

Cookies/Sessions login system

When a user logins I get him/her's ID and save it in a session var. What I wonder is, is this the way to go? Or should I use cookies? so it automatically login and so on. session_start(); ifcorrectlogin { $_SESSION['id'] = mysql_result($loginQuery, 0, 'user_id'); } how do you authenticate your users? //Newbie ...

can java applets (not signed) create / read cookies?

I was wondering if it's possible to write cookies to clients from unsigned applets. ...

question about cookie

Hi guys, I'm stuck in a cookie related question. I want to write a program that can automate download the attachments of this forum. So I should maintain the cookies this site send to me. When I send a GET request in my program to the login page, I got the cookie such as Set-Cookie: sso_sid=0589a967; domain=.it168.com in my program. Now...

Problem with cookie expiration set to 0 in IE8

I have found a fairly significant issue with IE8 with regard to setting cookie expirations to 0 (so as to log a user out when they close the browser). It seems that each new tab or window is counted as a new session, so if a user opens a page on the site in a new tab/window, they have to login again unless they selected the option to st...

How to avoid cross-reading between different directories under the same domain?

How to avoid cross-reading between different directories under the same domain? For example, setcookie('username', $username, strtotime('+1 months'), '/jp/', '.localdomain.com'); setcookie('username', $username, strtotime('+1 months'), '/cn/', '.localdomain.com'); When I use $_COOKIE['username'] to read the value under /jp/ or...

C# .NET Cookie Handling For After Login

Hello, I've spent some time researching this and still can't figure it out. It seem so simple so I feel like an idiot asking about it but after a while looking into it I just can't seem to get the hang of it. I need to programmatically log into this site: https://wholesale.frontiercoop.com/, store the cookie from the login, and resubmi...

How to access cookie values on different paths of the same domain using PHP?

Can a parameter of path be added to $_COOKIE[]? ...

How cookies work?

I wanted to know the interactions of a browser (i.e. Firefox ) and a website. When I submit my user name and password to the login form, what happens? I think that website sends me some cookies and authorizes me by checking those cookies. Is there a standard structure for cookies? Update: Also, how I can see the cookies of specific ...

Does using cookies pose a threat to application security in asp.net ?

Does using cookies pose a threat to application security in asp.net ? Or do we only use as a medium of saving user stats and non-vital information ? Got a little details of using cookies in asp.net from http://jai-on-asp.blogspot.com/2009/12/using-cookies-in-aspnet.html ...

get cookies form remote url

Hi I want to remote-copy a file from a server to my server using PHP. the server that contains the file needs authorization, so i put the authorization (user/pass) in my request, like this: 1- open socket connection $fp=fsockopen (.... 2- set the request like this : $request = POST . " " . $url . " HTTP/1.1" . $nn . "Host: " . www....