|
Hi,
I'm trying to set a cookie in one domain and access it from another. Is this possible?
Here's what I'm doing in my app:
In a controller, the test action is accessed via this url:
http://myapp.com/account/test
def test cookies[:foo] = { :value =>...
Started by Jim Jones on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You can set the same cookies for all your domains by doing; '.mydomain....
I have to add, if it were possible to set cookies for other, arbitrary domains, there would be massive security/privacy issues.
But not for exampleapp.com.
|
|
Haven't been able to find anything particular to this situation online so here i go... I need to set/get the cookies stored at "first.com" while browsing "second.com", I have full access of "first.com" but i only have javascript access (can manipulate...
Started by Luca Matteis on
, 5 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Www.first.com/readcookie.php"); refreshObject.send(); }
Regards, Robert
For SETTING cookies you can cookies from a different domain, right? I need to actually be on first.com to actually read its cookies.
|
|
I'm trying to implement Facebook Connect on a website with .NET MVC using C#.
I've followed the instructions here: http://wiki.developers.facebook.com/index.php/Trying_Out_Facebook_Connect step by step. I can make the login work as in that when I log ...
Started by Lilitu88 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Firecookie is very useful for seeing what Cookies are/aren't being set..
|
Ask your Facebook Friends
|
Evernote 's bookmarklet is able to do this, therefore the most upvoted answer does not answer this even though the bounty will go to it (in a non-productive manner).
I have to call domain A.com (which sets the cookies with http) from domain B.com. All...
Started by Luca Matteis on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
This default conservative policy....
Didn't work.
It just...
If it's worth anything, Chrome doesn't set the cookies on the ability to be able to set 3rd party cookies in order to log out.
I have found no way to get around this.
|
|
I am trying to set a cookie using PHP, so it's the same as the one output by the Perl code below:
my %auth; $auth{'username'} = $username; $auth{'password'} = $password; my $wholesaleauth = $co->cookie ( -name=>'wholesaleauth', -value=>\%auth...
Started by mikelbring on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I'd suggest CGI::Cookie in perl:
http://perldoc.perl.org/CGI/Cookie.html
Then you can get cookies in PHP via the $_COOKIE['cookiename'] variable, and set them via setcookie:
http://php.net/manual/en;\%auth, -expires=>....
|
|
I'd appreciate any thoughts/insight any of you might have on this...
I have two domains running the same applications e.g. mysite.com and mysite.org and I have a requirement that when a user logs into mysite.com then he should also be logged into mysite...
Started by Michelle7 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This is not a real answer but if you own the two domains you can set your cookies using cookies.
|
|
How can I set the cookies in my PHP apps as HttpOnly cookies?
Started by Scott Warren on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
,'/', 'www.sample.com' , FALSE, TRUE);
When setting cookies manually, use the following parameter syntax in that article, you can set the header yourself in previous versions of PHP
header("Set-Cookie: hidden
You can....
|
|
I have a Perl-based website that attempts to set a number of cookies on the users first visit and I just noticed that Safari has stopped setting all but the first cookie that is passed. On first visit two cookies should be set which are 'location' and...
Started by Russell C. on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
To set a one-year expiration date, the correct problem with cookies that was solved by CGI.pm upgrade..
On this and simply refuses to parse the remaining cookie headers.
|
|
I heard cookies are stored in my browser. But what are persistant cookies? Where they are stored? What is the use of those cookies?
Answer Snippets (Read the full thread at stackoverflow):
These are the cookies that get removed when you access....
Persistent cookies are created by setting an expiration date on the cookie, so that the browser doesn't are even if you shut down your machine and come back another time.
|
|
Exactly what are the restrictions for handling browser cookies from javascript? Can I check if cookies are enabled for example?
Answer Snippets (Read the full thread at stackoverflow):
For more information....
To answer browsers.
A cookie-set will succeed unless you go ahead and try it, by setting a dummy document.cookieYou write a cookie and try to read back: this way, you'll know if cookies are enabled.
|