We have a web page containing an iframe containing a page sharing an authentification cookie with it's parent page. For example the iframe page is on the domain foo.domain.com and the page containing the iframe is on foo2.domain.com. Both share a cookie from domain.com. Authentification works great, but the problem is with ASP.NET in ...
Hi I am trying to clear one of my cookies associated with a domain
www.efiglobal.com on a page generated at this location: https://secure.epromo.com
so this is clearing a cookie in domain x from domain y.
I tried to do this doing frames which I can do but it would make
my code convoluted.
I tried to do this using an iframe and had no s...
I have a WSS 3.0 site that uses forms authentication. In addition to my authentication cookie I get a cookie that contains data like this:
2FDiscovery=WorkspaceSiteName=aHR0cDovL3d3dy5rZWxldi5iaXo= path=/_vti_bin/Discovery.asmx;
This cookie does not have the Secure attribute set, even though I have requireSSL="true" in my web.config ...
setcookie('id', null, 1, "/", ".domain.name");
The above will only delete a specific cookie,but how to delete them all?
And if I've set cookie[person][name], cookie[person][id], cookie[person][age],how to unset cookie[person]?
It's actually 2 questions.
...
cookie[person][name], cookie[person][id], cookie[person][age]
How to make the cookie like above?
...
I'm working on modifying a script to better suit my needs, and I came across this line in the code:
return isset($_COOKIE[$parameter_name]) ? $_COOKIE[$parameter_name] : "";
I know that the function itself is essentially a cookie getter method, but I'm not quite sure what that syntax (i.e. the "?" and ":") means. I apologize if this i...
Hi,
I'm developing a login and authentication system for a new PHP site and have been reading up on the various attacks and vulnerabilities. However, it's a bit confusing, so I want to check that my approach makes sense.
I plan on storing the following data:
In the session: user-id, hashed + salted HTTP_USER_AGENT
In the cookie and i...
I know it is possible to set a cookie for a path such as "/" or "/folder/", but is it possible to set a cookie for a specific page, such as "/folder/page.html"?
...
I am developing a few webpages designed to be accessed by mobile phone (WAP, 3G) and came accross an emulator at dotMobi. What other tools are there for mobile development? Is there such as thing as ySlow for mobile? I need to use cookies so want a tool that can help debug cookies and check that they work for different phones and mobile ...
[php]
$filename = "./logs/".$_SESSION['uniqueID'].".php" ; // output 4b1e7b3489549.php
$data = "bla..bla..\n";
$data = stripcslashes($data);
/* Writing file configurations */
$buat = fopen($filename, "w+");
fwrite($buat, "$data");
fclose($buat);
?>
[/php]
Now whe i call the output file from $filename (record.php) f...
I just figured out that I have a problem in IE while working with one of my pages.
I set cookie with:
setcookie('page', '12345', '2000000', '/');
And if I login I reset the cookie calling that function again.
In firefox everything works fine cause the old cookie is deleted but in IE both cookies stay?
How can this happen? Isn't that i...
I'm having a strange problem with cookies which are being sent and received properly but are inaccessible to JavaScript on Internet Explorer. Chrome, Firefox, Opera, and Safari JavaScript is fine.
Post to "http://wp.abc.example.com/content/sv2.cgi?id=1234", response sets cookies, issues 302 redirect:
HTTP/1.0 302 Moved Temporarily
Loc...
I have a problem where some users come to my site with cookies that contain < or & characters (partly outside my control). These are flagged Dangerous by ASP.NET. What I would like to do is to be able to catch the exception, check for certain well-known cases that I want to allow and then throw the exception again. I don't want to end up...
I am learning, please be kind if it is an obvious mistake.
/*set cookie*/
function setCookie(name,value,days) {
if (days) {
var date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+v...
How to enable client side cookie for a page so that when a page is invoked for the first time , it works fine. Bur whe nthe same page is invoked for the second or third time , it gets redirected to other page.
i.e. Only one tab works at a time.
In rest of the other tabs, a default sequence works.
...
Hello all. I've got a question about how Rails handles cookie
encryption/decryption.
I've got this in my config/environment.rb
config.action_controller.session = {
:session_key => [some key],
:secret => [some secret]
}
And this in config/environment/production.rb et al.:
ActionController::Base.session_options[:session_...
Hi.
Got a test site that I'm fetching. The site uses the POST method, as well as cookies. (Not sure that the cookies are critical, but i'm inclined to think they are..)
The app presents a page, with a "next button" to generate the subsequent pages. I've used LiveHttpHeaders/Firefof to determine what the post data should be in the query...
I have already modified the registry so that All users cookies are being stored in the same location. However once you have more than one user windows automatically puts your windows username on the front of the file name of each cookie downloaded by that user. I want my users to be able to share a specific cookie. I am running Server...
all my cookies work great on subdomain, but if subdomain has "_" in it, then cookie dont get read at all and dont get right at all eaither. following are my tested result, which will self explain
justlife.demo.com *** works fine ***
just-life.demo.com *** works fine ***
just-.demo.com *** works fine ***
just_.dem...
what is the difference between asp cookie and javascript cookie.
by asp cookie i mean cookie created using response.cookie
& which one is better ?
...