cookies

Where should I create and get the value of a Cookie which I will be using for my ASP.NET MVC Application?

EDIT : I have another problem..Now I want to get the cookies value...in controllers constructor...does not allow me to do that since HttpRequest is Null...I dont want to do it on every controller action...since want to do it only once...and then every action can access cookie value ORIGINAL : Hi all I want to create a...

Rails cookie being set, session variable in cookie readable, session not readable

When setting session variables using cookie store in Rails 2, I can see the _domain_session variable being set as expected, and it shows up in the cookies in my browser. However, whenever I try to access the request.session hash, it's always empty, except for immediately after setting the session. # In a controller Rails.logger.debu...

having trouble with my website's cookies

Hey, I'm having problems with cookies on my website. After validating user credentials, the following code is executed if "remember me" is set: session_start(); $_SESSION['username'] = $myusername; if(isset($_POST['remember'])){ setcookie("cookname", $_SESSION['username'], time() + 60 * 60 * 24 * 100, "/"); } Every page o...

How to share a session with a php application.

I have a django blog project and a chat in PHP. I need to share the id of the user logged in django ( request.user.id ) with the chat in PHP. Is this possible ? ...

I want to store Javascript array as a Cookie

Is it possible , I have a some sort of list and I want to store it on browser , If it is not possible , what is the efficient way of doing this ? ...

How to share a session with a Erlang application

I need to create a chat in Erlang. Is there a way to share the session between PHP and Erlang applications ? ...

ActiveRecordStore ruby

I've had two previous questions about active record store that all came down to the same thing. Here's what I want: I want to access the session at any time and see who is online right now and access their session variable from anywhere. I need this because: Users are separated into groups. If one person logs in he receives an api to...

python coockie,request another page

#!/usr/bin/python # -*- coding: utf-8 -*- import urllib2 import urllib import httplib import Cookie import cookielib Login = 'user' Password = 'password' Domain = 'inbox.ru' Auth = 'https://auth.mail.ru/cgi-bin/auth' cj = cookielib.CookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) login_data = urllib.urlencode...

Cookie questions in Java

Hi, How do I differentiate between multiple cookies set through my site? I am setting two kinds of cookies one to see if the user has visited the site or not and an other one for authentication. How do I differentiate between these two? I get both of them when someone accesses a page after authentication. Do I add extra information to t...

cross-domain cookie in Opera

Hi, is it possible to set/read cross-domain cookies in Opera browser? I'm using solution http://bit.ly/c1Tk1i (sorry - in Russian, plz use google translate) and it works fine in any browser except Opera. ...

Making Authlogic 'not remember me'

I want my user session to end when the user closes the browser. But authlogic seems to remember the session even when a new browser is opened. I have tried setting @user_session.remember_me = false but that doesn't help. I drilled down to the save_cookie method which is indeed saving the cookie with :expires => nil. Am I right in assumin...

ASP.NET MVC Authentication Cookie Not Being Retrieved (UPDATED)

I am having a hard time implementing "Remember Me" functionality in an MVC application with a custom principal. I have boiled it down to ASP.NET not retrieving the authentication cookie for me. I have included a snaphot below from Google Chrome. Shows the results of Request.Cookies that is set within the controller action and placed in...

how to make a session persistent with .net

Is there a way to set a persistent session that would not expire when closing/re-opening a browser. The cookie that is used to store the session_id expires when the browser is closed. I know we can make the Auth persistent (stay logged in when we close and re-open a browser). In this case, the cookie does NOT expire when the browser is ...

How to keep a form filled on a UIWebView on the iPhone?

Hi, I use a form in a UIWebView in my iPhone application that initially is blank. After the user enters his name for the first time, I would like to store that information and use it for future form submissions, from the same app of course. Does this have to happen through javascript or from the iPhone API? I read about NSHTTPCookie and...

Javascript - remove part of cookie with a split('|') like array

I'm abit stuck. I'm using jQuery. I have a cookie which has the value such as : 1,something|2,somethingg|1,something We are treating it as [0] as id and [1] as name. I need to remove ONE where the id == '1' for example, this will leave the cookie like this: 1,something|2,somethingg How do I go about this, it will probally be in...

Setting httponly in JSESSIONID cookie (Java EE 5)

I'm trying to set the httponly flag on the JSESSIONID cookie. I'm working in Java EE 5, however, and can't use setHttpOnly(). First I tried to create my own JSESSIONID cookie from within the servlet's doPost() by using response.setHeader(). When that didn't work, I tried response.addHeader(). That didn't work either. Then, I learned...

URL for local files on windows mobile

Hi I'm trying to read cookie on windows mobile using InternetGetCookie , and the cookie is set by a local html file, so how does the URL for a local file look like? something like "file:///\Storage%20Card"? ...

I can create a cookie, but can't delete it from my iPhone app

I am creating an iPhone app, and am using this method to create a cookie that will be accessed site-wide: NSMutableDictionary *cookieDictionary = [NSMutableDictionary dictionaryWithCapacity:4]; [cookieDictionary setObject:@"status" forKey:NSHTTPCookieName]; [cookieDictionary setObject:[self.usernameField text] forKey:NSHTTPCook...

How to grab all cookies in Flash

For a site I'm developing with a user login that uses cookies to store the session ID, a separate section of it uses Flash to provide content and such. Is there some way it can access the cookies that were set the by login? The name of the cookie will not the be same every time, as it is randomly generated, as well as its value. I then n...

How to write Jquery cookie

Hi. I am designing a website that has 100% width + height div containing a graphic overlaying the home page. I want to show this once to the user when they first visit the site, a kind of welcome to the site click here to enter then this would never been shown to that user again. How do I write a cookie with Jquery to do this? Many than...