cookies

transfer cookies from twill to zope

Hi, I'm trying to figure out a way to transfer cookies from a Twill browser instance to a Zope browser instance. They both are built on Mechanize, so this should be possible. I have tried: zopeBrowser = zope.testbrowser.browser.Browser() twillBrowser = twill.commands.get_browser() twillBrowser.go("http://example.com/") # got some coo...

Jquery: set get cookie, apply as class

I want to set a cookie when a person clicks on a link, then i want to get that cookie and have it somehow add the class 'pinned' to '#navigation'. I'm not too sure if this is right, i'm using the jquery cookie plugin, ugh. this is the code I have so far: to set the cookie: $.cookie('CookieName':'#navigation'); gets the cookie, adds t...

ASP.NET Session - Use or not use and best practices for an e-commerce app

Hi, I have used ASP.NET in mostly intranet scenarios and pretty familiar with it but for something such as shopping cart or similar session data there are various possibilities. To name a few: 1) State-Server session 2) SQL Server session 3) Custom database session 4) Cookie What have you used and what our your success or lessons ...

One subdomain without cookies

Greetings I have a website with multiple subdomains, one subdomain per language: pl.example.com, en.example.cm, fr.example.com. I would like to keep one session across all subdomains so I'm setting session cookie and remember_me cookie for ".example.com". On the other hand all images should be served without cookies. Is it possible to t...

Secure cookies in PHP sessions

I have developed a PHP session class and tested it using a few examples (see source code below). It appears to be okay. Now I would like to make this session somehow "secure". I found some sample code which is meant to encrypt a cookie (in Courioso's book Expert PHP and MySQL). Here is this code snippet. Code for encrypted cookie $cook...

Internet explorer sending cookies even though they are blocked?

I have a strange problem with an ASP.net website whereby we perform a cookie check to see if cookies are enabled and if not redirect users to a page on enabling cookies etc. This is working fine in all browsers except for Internet explorer, whereby I get past the page that performs the cookie check without this redirection. I attached th...

Authlogic: Setting expiration date for cookies

Is there a way to set the expiration date for the session cookies created by Authlogic? ...

Multiple sessions possible per user.

If a user opens 2 web pages simultaneously they will create 2 sessions. Usually this would not matter but it does create a problem for remember me functionality when attempting to rotate cookie tokens as recommended in the persistent login cookie best practices. There seems to be no way to rotate both cookies correctly where both sessio...

javascript document.cookie missing some pairs

hi all, my script set up like 10 cookies and the browser successfully saved them, but document.cookie only retrieves 9 pairs, the missing pair is as follow: auth:4ae9Mq1j6tjt7dV6kV6A0piHB6NnNjijBmecax9mA8cfDpSs6pnAcD7H1%2FUqWMIIB%2BbgtKIJ2w1L2GnXkgV2 what happened? is there a character limit in document.cookie? the cookie domain is the...

How to check cookie from other website in php and do not allow to access mywebsite?

How to check cookie from other website in php and do not allow to access mywebsite? if client is have cookie example if have cookie from www.example.com it would be redirect to other website? please help me some people from other website is comment me about bad website and i want check if have cookie from that i dont want show anythi...

How to disallow to access my website if someone have cookie from exam.com website?

Possible Duplicate: How to check cookie from other website in php and do not allow to access mywebsite? How to disallow to access my website if someone have cookie from exam.com website? i tried for about this in php . please help me thank ...

What domain should I give this cookie?

I'm trying to call a web service from a c# application, with sessionID. In order to do this I need to set the "Domain" header in a cookie. In Fiddler it looks like - "ASP.NET_SessionId=izdtd4tbzczsa3nlt5ujrbf5" (no domain is specified in the cookie). The web service is at - "http://[some ip goes here]:8989/MyAPI.asmx". I've trie...

Delete cookies via JavaScript

Hey, Please let me know how to delete specific cookie (I have the name of the cookie its enough..). I really dont have an idea (I dont know JS well...) and when I searched in Google I didn't find a good solution. Thank you. EDIT: If I can't delete the cookie - let me know how to change the value to "" (empty..), its ok too. ...

$cookie_domain value causes access denied upon login

I have FCK editor installed, and trying to enable FCK file manager. It tells me that in order to use it, $cookie_domain must be set. Easy enough, I set it to www.mysite.com. I can log in, register, etc just fine. However I started seeing a number of people get Access Denied after logging in or trying to access any protected area. Comm...

What is the proper URL to get an Auth Cookie from a GAE based Application

I have an android app I want to connect to a Google App Engine based server. I can get the auth token from the AccountManager. It seems the next thing I am supposed to do is talk to an auth page to get a cookie. Following the awesome instructions here: http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-ap...

Pre-existing session required for handler method xxxxx

I am getting this exception when I authenticate a user on facebook and facebook redirects to callback... Before sending the request to facebook, the session is there but on calling the callback it creates a new one? I am using MultiActionController of spring and session is the 3rd param of the method signature. Would I need to use coo...

How to read/write flash cookies with php?

I have a site where I require to bar some people from accessing it, and creating new accounts due to rampant abuse. IP banning, setting cookies to identify people proved to be useless since they use proxies and clear cookies. I would like to save the "ban cookie" into flash, and have php respawn the http cookie if the flash cookie exi...

Best way to Identify a user uniquely

I am building a Like/Dislike feature. For this purpose I need to identify the particular user liking or disliking the post. I have an idea that without user logins this cannot be done perfectly, but whats the closest to perfect technique, Issues I have are stated below: Cookies can be cleared, and vary form browser to browser Most of t...

Logging into Ebay with C#

Hi, I am trying to log into my EBay account using C#. I have looked at various posts and found the following 3 options. Unforunately, none of them are working. I am also listing the response header values that I get and that Fiddler shows when doing a login. There is a difference as I only get one "Set-cookie" value and Fiddler shows 10 ...

Why does Magento use 2 cookies per session?

For data security and privacy reasons I want to know why Magento uses two cookies for one frontend session. All I know is that one of them is being set in Mage_Core_Model_Cookie::set(..) and the other one in Zend_Session::expireSessionCookie(), but still I can't seem to figure out what they are used for. I just can't think of any reaso...