cookies

What is the pros and cons in using FormsAuthentication to persist login cookie?

What is the pros and cons in using FormsAuthentication to persist a login cookie? I see that StackOverflow ignore FormsAuthentication and instead implemented a different strategy to persist a login cookie. Pros Out of the box implementation for persistent login feature. Cons The login feature depends on the machine key which mean...

Cookies with urllib

This will probably seem like a really simple question, and I am quite confused as to why this is so difficult for me. I would like to write a function that takes three inputs: [url, data, cookies] that will use urllib (not urllib2) to get the contents of the requested url. I figured it'd be simple, so I wrote the following: def fetch(u...

Problem with setting cookies from Javascript running on nginx

I can't seem to set cookies from the jquery.cookies plugin when running on nginx. My configuration is pretty standard, I'm just wondering if anyone else has had the same problem. I'm new to nginx, so take it easy on me :) ...

xcode - ipad app. UIWebView Remember login info

I'm working on an application to run base camps website only. I need it to work when you login and press "Remember me on this computer" I'm not sure how to set it up to actually remember your login and keep you logged in when you come back to the app. Is there a way to 'save' the state of the application when you quite it and come bac...

Why Illegal cookies are send by Browser and received by web servers (rfc 2109, 2965)?

Hello, According to RFC 2109, 2965 cookie's value can be either HTTP token or quoted string, and token can't include non-ASCII characters. Cookie's RFC 2109 and RFC2965 HTTP's RFC 2068 and 2616 token definition: http://tools.ietf.org/html/rfc2616#page-16 However I had found that Firefox browser (3.0.6) sends cookies with utf-8 strin...

iPad App Cookies Storage?

Hi, I have an application that sends you to one website that shows a login form. I've read up on cookies from the apple reference (http://developer.apple.com/iphone/library/documentation/Cocoa/Reference/Foundation/Classes/NSHTTPCookie_Class/Reference/Reference.html#//apple_ref/occ/instm/NSHTTPCookie/initWithProperties:) I'm honestly ju...

Sessions and cookies

I currently have a website that allows my visitors to login via a simple script i've pasted together and wrote. Currently I only use sessions to keep visitors logged in. Are there any advantages to adding cookies to my website to store user logged in status? Or is there a better way altogether? using PHP ...

Reading value of cookie using curl in php

Possible Duplicates: how to get the cookies from a php curl into a variable Any way to keep curls cookies in memory and not on disk Hello, Im using Firefox 3.5.9. When i visit a url , it sets a cookie on my computer.I can see this cookie in Firefox by going to Tools->Options->Privacy,then clicking on 'Remove Individual Cook...

Are cookies enough for storing login data?

I am reading the Head First PHP/Mysql book and they say to store both the user's username, email into cookies and sessions.cookies? Should I store both in sessions and cookies or just one of them? I am not storing any sensitive data in cookies such as password, etc. ...

*Discussion* Client side page permissions - Javascript / jquery / cookies / other?

TLDR Using plain HTML / Javascript. Want to block access to some pages (doesn't have to be super secure just to stop some peeking eyes). I would like this to be a discussion preferably on different ways of doing this? If anyone has any other ideas than using cookies or differeny ways to do this. I thought of simply doing this by sett...

Manually start session with specific id / transitioning session cookie between domains

My host requires me to use a different domain for SSL secured access (shared SSL), so I need to transition the user session between two domains. One part of the page lives at http://example.com, while the SSL'd part is at https://example.hosting.com. As such I can't set a domain-spanning cookie. What I'm trying to do is to transition th...

[Python] Different work of the script in Windows and in FreeBSD

Hello. I'm writing some script, that works with web-servers. So, I have the following code: client = suds.client.Client(WSDLfile) client.service.Login('mylogin', 'mypass') print client.options.transport.cookiejar ####### sessnum = str(client.options.transport.cookiejar).split(' ')[1] client = suds.client.Client( WSDLfile, headers= { '...

Difference between "InProc" & "stateServer" mode in SessionState on ASP.NET

Hey, like the title shows I want to know what is the difference between "InProc" & "stateServer" mode in SessionState on ASP.NET. Thanks ...

Read cookies with JavaScript

I know how to write/create cookies in JavaScript......................................................... //Create the cookies document.cookie = "Name=" + Name + ";expires=Friday, 31-Dec-2011 12:00:00 GMT; path=/"; document.cookie = "Surname=" + Surname + ";expires=Friday, 31-Dec-2011 12:00:00 GMT; path=/"; document.cookie = "Number=" +...

$_COOKIE['cookiefoo'], try to get a cookie

Hi, I'm newbie with webapps and PHP. I'm trying to get a cookie that it's not created yet, I mean, when I try to load a page that looks for a non-existent cookie I get an error, I tried to get rid of this with a try/catch but not success. This this the code I'm trying: try{ $cookie = $_COOKIE['cookiefoo']; if($cookie){ ...

Is there any way to delete an HttpOnly cookie from C# Selenium tests?

I have a set of C# Selenium tests that need to delete a cookie that has the HttpOnly flag set. Unfortunately the DefaultSelenium.GetCookie() and DefaultSelenium.DeleteCookie() commands aren't able to access the cookie, because it has that HttpOnly flag set. I've confirmed this by removing the flag by hand, and checking that subsequent c...

jQuery Accordion w/ Cookie Plugin

Hello, just a quickie that I can't seem to figure out. I have this jQuery accordion menu that is also using the cookie plugin and everything works great but I am trying to add a class of "active" when the link to open the accordion, then remove it when it is clicked again. I thought this would've been something simple to do but it has pr...

Click to make body text larger | JavaScript

Please note this is just an example: <img src="img/normal-font.png" onclick="javascript:document.body.style.fontSize = '13px';" /> &nbsp; <img src="img/medium-font.png" onclick="javascript:document.body.style.fontSize = '14px';" /> &nbsp; <img src="img/large-font.png"onclick="javascript:document.body.style.fontSize = '15px';" /> The...

Using the same cookie in two logins

Hi everyone, I need your help I've a MVC project that uses Jquery, where I've implemented a mechanism of "Remember Me" using cookies to save, clear and retrieve the login and password. I also have two screens where the user does the login. I want that both logins manipulate the same cookie. I've got to implement it, but I've realized ...

C# Web Service Client using a CookieContainer

I have developed a small C# form application which calls a web service. Everything works nicely but I need to keep state and to do that I need to use a CookieContainer if I am not mistaken. I created the Service Reference by using the "Add Service Reference" menu of my project and everything worked nicely. But I do not know how to add ...