cookies

C# WebBrowser control: Clearing cache without clearing cookies

I have this code that clears the cache in a C# WebBrowser control. The problem with it is that it also clears the cookies. I seem to be the only person on the entire internet that doesn't want that. I need to maintain cookies, but to throw away the cache. Of particular interest is this line: const int CACHEGROUP_SEARCH_ALL = 0x0; It ...

cookielib and form authentication woes in Python

InstaMapper is a GPS tracking service that updates the device's position more frequently when the device is being tracked live on the InstaMapper webpage. I'd like to have this happen all the time so I thought I'd write a python script to login to my account and access the page periodically. import urllib2, urllib, cookielib cj = cook...

How do I implement cookie based auth for a Perl website on shared hosting?

I'm very new to Perl, and I have absolutely no idea how to approach this. We have an old Perl application which previously used Apache auth; we'd like to replace this with a cookie based form-style authentication. I understand that this is very case-specific, and there is no one answer as such, but some general tips would be much appreci...

Curl/Fetch question - Referer, Post data, Cookies

Hi.. Got a Curl question (and yeah, i've searched Google, this site, as well as the docs!!) Somewhat new to curl. Trying to use Curl from the cmdline (linux) to fetch pages from a college website (sjsu). I can somewhat get the 1st page, but the 2nd/2rd pages use referers/cookies.. I think this is where things are screwed up.. I'm also...

Cookies and Jquery: Dialog Boxes

I am having difficulties creating a cookie (using the jquery cookie plugin) that will remember the position of all dialog boxes on the page (class .dialog). The dialog boxes are draggable. This is what I have tried: <script> jQuery(document).ready(function() { // cookie period var days = 1; // load positions form cookies ...

Cookies not working on different pages

Ok I have a cookie set, and I can clearly see it if I go to private data in Firefox... ok so when I echo it on one page in a certain directory it works, (www.example.com/dir), but on the index page of the site (www.example.com), it wont echo, it says the cookie is not set. Yes I have cookies enabled, yes I tried clearing cache and all th...

Specify Cookie Domain in Authlogic When Session Is Created

Is it possible to set the cookie domain to something other than the current domain when a session is created with Authlogic? When a new account is created from our signup domain, I'd like to redirect the user to their subdomain account and log the user in. Current controller: def create @account = Account.new(params[:account]) if ...

Could not get cookie from another (parent) domain in Django

Hi All! I need to remove a cookie that was previously set for parent domain while browsing host at subdomain of the parent. I.e., a cookie "xyz" was set for example.com, and I am trying to remove it on subdomain.example.com, using Django backend. The request.COOKIES given to the view does not contain any cookies except those from subd...

php: cookie based sessions

does any body have any info/links as to how to integrate a cookie based session system? i've used file/mysql, and am currently using memcached. i wanted to play with apc sessions, but thought i'd give a go at cookies, only i don't know much about it. i imagine i'd have to write my own session handler class? ...

My jquery cookies are not resetting, even though am using the correct code.

My problem is that I am trying to reset some form cookies so when someone has completed their form, they are reset so it is possible for someone else to complete the form. Simple and obvious. But However many different lines of code I put in, the cookies just do not seem to be disappearing. I am using the remember function from the sit...

no test for session key if sent by application

Hi, I'm writing a non browser application using rails as server. As I understand, I need to add the received session key to any successive request. If logged through a browser, it is indeed checked as deleting the cookie during a sesion will fail session test for any request senf afterwards. However, in my application, I can send any ...

Auth Cookie expiration in .Net

I'm working on an app using ASP.Net's form authentication. The client also makes RESTfull calls to the server (ExtJS components on front end). We are using a custom HttpHandler for the service calls. My problem is that anytime the anytime the authentication cookie expires my HttpHandler 's ProcessRequest method isn't called in order f...

php cookies,sessions,mysql

I wound up inheriting a site which seems like it was originally designed to provide access to registered users then decided it wanted public access with the exception of specific restricted features. The access control is decent, however, what's boggling my mind is why anyone would add an entry to their database for each unique visitor....

What is a third party cookie?

What is a third party cookie and how is it used in Facebook connect feature? ...

htmlunit cookie/refer question

Hi. Testing out the java HtmlUnit lib. Trying to figure out if there's a way to set/delete the cookie file (cookiejar) used by the webclient object.. I've searched multiple docs, as well as the HtmlUnit API with no luck, so I'm assuming I'm missing something. Also, is there a way to see the headers (request/respnse/referer) being xfer...

Managing HTTP Cookies on iPhone

Hi, I want to port a python app that uses mechanize for the iPhone. This app needs to login to a webpage and using the site cookie to go to other pages on that site to get some data. With my python app I was using mechanize for automatic cookie management. Is there something similar for Objective C that is portable to the iPhone? Than...

How to show unread/read status of forum post's like vbulletin, phpbb, others?

This is the million dollar question, I see it time and time again on here and other php coding related sites and forums but I have NEVER seen an answer to it. So I started digging in and studying how some of the big high traffic forums accomplish this feature of showing you which threads have new unread posts in them and it appears th...

Codeigniter cookies

I was hoping someone, could give some information on Cookies and Codeigniter, I have read there user guide on them so I have an understanding of how to set them, etc. What I want to know is how do I use for example if you look at the BBC website, you can drag and drop the boxes and it will remember where you placed them with out the need...

Checking/Reading/Writing cookies in .NET, please help me understand.

So I have never had to use cookies before but now I am making a Shopping Cart that they can keep coming back to and leaving but I want it to store what they added. What I am wondering: How do check if a cookie exists and then create or update it, is that the best way to think about using a cookie? How exactly would I store the data, i...

Why doesn't HttpClient work but HttpUrlConnenction do when posting data to form.

Hello experts! I'm building an android app which should perform a GET on my site to get two cookies and then perform a post to the same site with these cookies. As mentioned I start of with the GET and I'm using org.apache.http.client.HttpClient to perform this operation. String requiredCookies = ""; HttpContext localContext = null;...