Hello, I'm trying to use Rohit Agarwal's BrowserSession class together with HtmlAgilityPack to login to and subsequently navigate around Facebook.
I've previously managed doing the same by writing my own HttpWebRequest's. However, it then only works when I manually fetch the cookie from my browser and insert a fresh cookie-string to the...
I'm not even sure how to describe what I'm trying to do since I don't know a whole lot about cookies, but here goes.
Is it possible to use PHP to collect a cookie (or cookie file) from the browser cache, save it into the database, then clear the cache and re-save it back to where it used to be?
What would be involved in implementing ...
I have a WCF 4 REST WebService within a folder in my ASP.Net MVC 2 project. JSONP is also enabled on the service using the 'crossDomainScriptAccessEnabled' binding option.
The site and service work great. But, I just noticed that if you are signed in to the website (meaning you have a cookie) and then you 'test' an API method by hitting ...
I'm trying to do a “get” of a page, and pass in a list of ids that is stored in my cookie. My assumption was that it would be possible to get the cookie with the list from my request. However, I don’t get the cookie on the server side as I would expect. I only get a “user” cookie, but that doesn’t contain my info.
I want to try to avoi...
Hi, I'm trying to with Cookies and Zend Framework 1.10. This is my code:
$zendCookie = new Zend_Http_Cookie('foo', 'bar', 'localhost', time() + 60 * 60 * 24 * 30);
$client = new Zend_Http_Client();
$client->setCookie($zendCookie);
But the cookies aren't stored. I checked it with Firecookie Firefox's extension.
What's wrong?
Thank yo...
How do the various popular user agents respond to Set-Cookie headers returned as to response to an XMLHttpRequest? Does the Javascript need to affirm or instruct the user agent to acknowledge that header?
...
It's pretty well known that Google Ads doesn't support HTTPS, but since I store my user's session in a bearer token/cookie I feel the need to encrypt this information... at a minimum so I can protect my end users from being hacked.
What are my choices? I'm sure someone has come across this before. Ideas that may work include
Changin...
Hi. I have my site setup like this:
www.mysite.com
subdomain.mysite.com (configured as an application)
I then registered another domain, lets call it www.myothersite.com which redirects to subdomain.mysite.com using masking so that the address always remains www.myothersite.com/...
Within the subdomain site I have a forms authenticati...
People are reporting having trouble logging into one of our ASP.NET sites. When I check the IIS logs, it looks like the FormsAuthentication cookie is not being cached by their browsers after they log on.
I don't think its as simple as 'user has set their browser to not accept cookies' because:
a) If cookies in general weren't working fo...
Hi, I have some special cookies. I need those cookie was set by server code only. So I need to find out that cookie was set by javascript or server code. Is it possible?
...
As the title implies, the automatically login system is wildly used by many websites. But I could not figure it out by myself. Could you please give me some hint.
EDIT: Yes, I mean the remeber me feature like google.
thanks.
...
so i need a cookie set for 21 days on a browser when a user hits the site and everytime the user returns in that 21 day period i need to retrieve that value
if($_REQUEST['ref'] == "something"){
setcookie('something_value', "something" ,time()+60*60*24*21,'/','mydomain.com');
}
in the view
<?php if(isset($_COOKIE['something'])) { ?...
Hey guys,
I'm working on the login/ucp module of an application and I'd love to add a "remember me" option to remember the currently logged-in user and keep them logged in next time they visit.
I know this requires JavaScript cookies, and I've never done anything like this before.
Do you have any boilerplate code or tutorials that cou...
hi all,
i have a domain for example : example.com
and i have sub-domain : sub.example.com
the users on the site is sharing the same session & cookies,
but how can i remove cookies from both the domains ?
for now i delete from one domain and when the goes the the sub-domain he is logged in again ..
much thanks. shlomi
...
Hello
I'm handling cookies using JavaScript to store some values in my asp.net web application.
I use document.cookie to save some values (converted into a lengthy string). But i want that value to be accessible across all the pages in my application.
When i try to get that value from a different page, i get the values pertaining to t...
I am looking for the API calls that would allow loading cookies into IE from say a text file. I believe this should be possible since IE has a import/export facility for cookies, feeds and favorites. When performing this kind of operation besides recreating the cookie txt files, index.dat must be also updated, otherwise the cookies won'...
I'm following Charles Miller's persistent login cookie best practice.
After I use the persistent cookie, I issue a new cookie (with the same name, but new token).
But before I issue the new one, do need to delete the old cookie?
If I do not, will the browser just replace the old cookie with the new cookie (since they have the same nam...
It doesn't seem that HttpServletResponse exposes any methods to do this.
Right now, I'm adding a bunch of logging code to a crufty and ill-understood servlet, in an attempt to figure out what exactly it does. I know that it sets a bunch of cookies, but I don't know when, why, or what. It would be nice to just log all the cookies in ...
I'm calling this code on IE8, and on firefox:
document.cookie = 'val=500; expires=Wed, 18 Aug 2010 09:06:21 GMT; path=/dir/257/the-quick-brown-fox'
It works fine on firefox and chrome, but not on IE. Anyone see whats wrong?
UPDATE:
if I don't put the path then it works in both browsers, but I'd like to be able to put the path:
docum...
Hi,
I am new to PHP and would like to know how to setup and use Cookies to store user menu selections between pages.
Basically, when a user say clicks on a menu option called "About Us", I would like to somehow store this selection via a cookie that I could then use somewhere else?
FYI, I am using the jquery .click function to determi...