cookies

iPhone Cookie Management

I am writing an app that needs to store a cookie. my plan is to do the following. // create a ref to shared storage area NSHTTPCookieStorage *cookieJar = [NSHTTPCookieStorage sharedHTTPCookieStorage]; // query the current acceptpolicy (ie want to store it for later...) [cookieJar cookieAcceptPolicy]; /******** This line cra...

Cookie file for Google Chrome / unix

Where does Chrome store its cookie file on a unix system? ...

How do i enable cookies for Microsoft.mshtml.dll in a C# panel app?

Is it possible to enable cookies on the Microsoft.mshtml.dll web browser if that control is running within a C# User interface pane? I am having a situation where a popup window is not able to see the session since the session cookie may not be getting stored in the original window that spawns the popup. I don't know how to manage ...

delete jquery cookie from other page on button click asp.net mvc

Hello, How can we delete a cookie [jquery plugin cookie $.cookie()] or set it to null on one page from a diff page? I want to delete a cookie on page 2 from page 1 on button click. I tried so many diff ways and I was unsuccessful. please help. is there any work around? ...

Cookies can not be retrieved using PHP

This is the command with which I set cookies: setcookie('username', $username, strtotime('+1 months'), '/', '.localdomain.com/jp/'); This is the statement with which cookie is read: $user=$_COOKIE['username']; Why can I not read cookies on another page? ...

Cookie - Ajax / Javascript

I have an ASP.NET 3.5sp1 app that is a single page design. The site never posts back. All interaction is done via ajax. (the site is http://BiblePro.BibleOcean.com) Anonymous access, no accounts in the app. I wish to save the user's state so that when they come back it returns to where they left it. Is there a way I can save a cookie t...

Ruby on Rails - Cookie value displays only on refresh

I have a drop down in one of my views, allowing me to select the number of images on the page. I want to remember the selection on that page, so when the user comes back, the number of images displayed are what they selected last time around. To achieve this I am setting the cookie value from within the controller like this if cookies...

Restful Authentication: Allow logins from multiple computers?

Our Rails app is using Restful Authentication for user/session management and it seems that logging in to the same account from multiple computers kills the session on the other computers, thus killing the "Remember me" feature. So say I'm at home and log in to the app (and check "Remember me"). Then I go to the office and log in (and a...

qt soap client + ASP.net Web service

Hi, I'm writing Qt client for ASP.NET web service with FORMS based authenitcation. The service consists of 3 methods: Login(user,pass) Helloworld() - this method returns info oabout athenticated user. Logout() Every thing working fine on the dot.net client with CookieContainer. The problem begins with HelloWorld() methods. it return...

What should be stored in a session and a cookie?

I'm wondering, are there any guidelines or best practices on when to use sessions and cookies? What should and what should'nt be stored in them? Thanks! ...

How to handle cookies with C++ code?

I am looking for a way to handle sessions through cookies in C++. Can anybody please help me with some hints for the solution? ...

What should I store in cookies to implement "Remember me" during user login

I have a login system in place for my website, the details of the user which are stored in the database are userid(unique for every user and identifier), email address(unique), display name(not unique), password and membersince. Now what should I store in the cookies? I was thinking about storing just the userid in the cookie with an exp...

How many values can be stored in $_COOKIE[] on the client for a website?

Can I store as many as values in setcookie? What's the limit? ...

Cookies in IE6+, Safari vs. Opera, Firefox (JQuery)

Hi, I have found a weird difference in cookie behavior in IE+Safari/Opera+Firefox while navigating with the 'back' button: in IE and Safari the cookies set on a page get dropped (reverted) when returning to the previous page via the 'back' button, while in Opera and Firefox the new cookies persist. The latter behavior is what I need, b...

Curl and cookie

Hello! I'm using cURL to log in a website, but I don't know how to get/use the cookies I get. Does anybody has an idea? Thanks ...

Curl cookie handling

Hello! Is that possible that with cURL not every user use the same cookie? Because it's cool that I store the cookie that I get, but this cookie will be used by everybody, and it should be, because it's a login cookie. Charlie ...

will encrypting a comma seperated list of ID's make it smaller to fit into a cookie?

say I want to store ID's in a cookie: 123,1232,3443,2343,2344422,2342 seeing that a cookie has a 4kb limit (or whatever), would encrypting the value allow for more storage somehow? if so, which encryption would be best? (not really worried about security, just want to store more with less footprint) ...

How to disable cookies in Amazon S3

Hi there! I'm using Amazon S3 for my static files (pics, js and css). The S3 url is a subdomain of my main webapp (http://s.webapp.com) Google's PageSpeed and Yahoo's YSlow warn to 'Use cookie-free domains' and 's.webapp.com' is one such domains using cookies but not really needing to. How do I disable cookies in my Amazon S3 subdomai...

keeping cookies after application restart c# webbrowser control

I want to be able to preserve the state of the web browser control when an application is restarted. For example if I log into to a site with a two hour cookie expiration, I quit the app and restart it within the two hours, I would like to continue the same session. (the same way the session would be kept if I had the control open the wh...

keep user logged in when he visit the same page again?

currently im using session to log in the user. but when i close the browser and open it again i have to log in again. how do you keeo the user logged in in lets say 2 weeks. is it through cookies then? ...