cookies

Do cookies work when accessing a remote script with jsonp?

Hello, i use jsonp to post a form to a remote script. the code is something like this: $.ajax({ type: "get", datatype: "jsonp", url: 'http://other-domain.com/process_form.php?param1=x&' + $("#gs_vote_form").serialize(), data: $("#gs_vote_form").serialize(), success: function(data) { alert('form submitted successfully...

Separate cookies being stored for http://thewebsite.com and http://www.thewebsite.com?

My friend and I are creating a cookie-based login system using PHP and MySQL, in which when a user logs in, a cookie storing their login information is saved. The problem is, for each URL, http://thewebsite.com and http://www.thewebsite.com, separate cookies are stored. Is there a solution that would allow us to save the same cookie fo...

Set a cookie in restlet

I'm having a heck of a time setting a cookie in restlet, heres what I have so far:: public class CookieTestResource extends ServerResource { @Post public Representation post(Representation representation){ CookieSetting cS = new CookieSetting( 1, "cookieName", "cookieVal...

Dealing With Cookies and Reddit on the iPhone

I'm building a Reddit client, for the iPad and the iPhone. I know there's some other clients, but I have some really cool ideas for tabbed Reddit browsing :D Anywho, I'm working on the back-end of the thing first, and was wondering what the best way to deal with my cookie would be. I'm using ASIFormDataRequest and ASIHTTPRequest to get ...

Maintaining a session over multiple pages.

I am having trouble designing a way to maintain a session with a cookie across multiple pages. I am doing something very similar to this tutorial. I check the password and username from a splash page, and if it is correct then I set a cookie and fill it with a hash. After that I transfer the user to a different page. If the username/...

HTTPS login not saving the JSESSIONID in a cookie

We recently changed our login to use HTTPS, and we are experiencing issues with the login. After the login, the user is redirected to an unencrypted (HTTP) page. When it reaches this page, the site checks if the user is logged in. It creates a new session and it appears that the user is not logged in, and thus our user is redirected to ...

Asp.Net MVC: Can't delete Cookies that I get after Facebook Connect

I implemented Facebook-Connect successfully and Im able to retrieve User-Information using the Facebook Toolkit. But I cant sucessfully logout. When I press the facebook-Logout button (which automatically appears when Im logged in, because im using the autologoutlink-property) <fb:login-button autologoutlink="true"></fb:login-button> ...

CFHTTPCookieGetCreateDate is deprecated in this OS build (iOS4)

Hi, I have a simple application which accesses cookies from a webpage using a standard NSURLConnection. The existing version of the application works fine (developed for 3.0), however, I have modified the app (making it fully iOS4 compatible) and I now recieve the following warning in the log: CFHTTPCookieGetCreateDate is depr...

Using brackets within a cookie name.

Hello! I'm trying to use brackets within the name of a cookie. It is supposed to look like this(this is how the browser wants it!): Name: name[123456].newName Content: 20 Here is my example: $cookie = "name[123456].newName=20" But when I analyze what the browser sees, I get this: cookie['name'] = Array And I want: cookie['nam...

What is currently the best way to set a 3rd party cooky?

I'm reading a lot on this topic for some time now. The information on the web about this topic is quite confusing. Use case: A User visits site hostA.com, which includes a "tracking pixel" from site hostB.com . The user never visited hostB.com before. hostB.com sets a cookie with the response. Which browsers will accept and save the c...

Exception ThreadAbortException on RedirectFromLoginPage

Hello people ! I'm having some trouble when people try to log on my system in IE8. Before tomorrow everything is fine, but now when they try to log on the line who call RedirectFromLoginPage method throws ThreadAbortException exception. After some investigating i found that if i change createPersistentCookie to false they can log norma...

Storing Last Search Results

Hi, I'm working on a collaborative project and I'm trying to figure out the best way to store previous search results. Let me quickly explain the scenario. I have a list of search result items and I want these results to be stored as a user clicks on an item and visit's it's landing page. At the top there will be a section listing the l...

How to do htaccess redirect based on cookie value

I have failed at Google and I could not find the answer searching here. Sorry, I'm a newb at htaccess and it has really odd syntax and is so hard to learn! You can see what I'm trying to do here... RewriteEngine on RewriteCond %{HTTP_COOKIE} ^.*user_id=(\d+).*$ [NC] RewriteRule .* http://localhost/mysite/cache/$1 [R=301,L] RewriteRule ...

Cookies & mulitple domains with PHP

Hey, I have a website which creates a cookie and I want to use this cookie in my application on Facebook. is it possible? if not, any idea how to recieve information from my website and pass it to Facebook? Thank you. ...

ActionScript 3 SharedObjects don't persist across different swfs?

I am serving two different swfs that read and write to the same SharedObject variable. The SharedObject variable is a number, and each swf checks that number to make sure it isn't using the same number twice. It then stores the last number it selects. In this way both swfs should never use the same number twice, no matter which order ...

Cookies - Store an authentication token

I'd like to place a cookie on the client that holds an authentication token. After they log in with their credentials, they can just send the token instead of credentials until the server determines the token has expired. Below is the constructor for the cookie. I'm using restlets and am unsure about what to set "path" and "domain" to...

How to create "remember me checkbox" using Codeigniter session library?

Hello in Codeigniter I am building an Authentication system for my web site and to achieve that I use session library session->set_userdata('username') this will save the session -I believe- for some time I want to provide a "remember me" checkbox in the login form so the user can save the session forever - could not find a way...

can't login magento in local system in firefox

Hi I have installed magento in my local Xampp. After installing I have tried to login in Mozilla (both in front end and admin side). Does any one know how to login magento in fire fox. Thanks ...

PHP - why can't I get rid of this session id cookie?

I'm trying to troubleshoot a logout function for a web app. When you're logged in, the app has several cookies set for its domain. Here's the current logout procedure: You click a link, which sends you to a logout page The logout page runs a function that calls session_destroy() and also loops through all the cookies for the domain and...

Flash Cookies in Silverlight doesent work on Windows XP Embedded

Hi, I have a Silverlight 4 out-of-browser full trust application that shows a Flash file. This Flash file is using cookies to store some informations. When I opening the Flash application in my Browser (Internet Explorer) he can acces the cookies, but in my Silverlight application he can't do this. This happens ONLY on the Windows XP Em...