Can I do a redirect to a custom page in an HttpModule?
I have an HttpModule A which executes some javascript code when any aspx page is loaded.
I would like to have a server side code check to see if the clients browsers supports cookies.
Can I place that code in the HttpModule A? If so, in which event?
Or do I need to have a new HttpHa...
Hi guys,
I want to make a login system using cookies/sessions but I'm not sure what security and such is like with them.
With sessions, if "login" is set to "yes", can I trust that? Are users able to change what it returns? Should I just store the encrypted password and check it on every page?
With cookies, would I have to check for ...
I'm trying to take the hex value chosen from a jQuery colorpicker plugin, and store it as a cookie using the jQuery cookie plugin.
I just don't know the appropriate way to tie the two together (new to js and jQuery).
Here's my colorpicker function:
$('#colorSelector').ColorPicker({
color: '#ffffff',
onShow: function (colpkr) {
$(...
I would like to store the cookies from one open-uri call and pass them to the next one. I can't seem to find the right docs for doing this. I'd appreciate it if you could tell me the right way to do this.
NOTES: w3.org is not the actual url, but it's shorter; pretend cookies matter here.
h1 = open("http://www.w3.org/")
h2 = open("http:/...
I have cookies for the domain .forum.mywebsite.com and for .mywebsite.com.
Is it possible to read the cookie for the .mywebsite.com domain with javascript from the forum.mywebsite.com location?
...
I am building a website that is loaded into a frameset by other sites (where the domain names are different for the parent site).
This works fine in all browsers (including IE6), except for IE7. It is not registering the session at all and simply does not work.
Site is implemented using LAMP, MySQL 5, and PHP 5 - yeah, probably not re...
Searching for possible ways to get cookie with httpOnly enabled, I cannot find any. But then again, how do browser addons like Firebug, Add 'N Edit Cookie, etc. can get the cookies? Can't an attacker do the same?
So my question is, is it really, really impossible to get cookie of httpOnly enabled requests, using javascript?
p/s: Yes I'...
I want to save user name and password in a cookie.mine is a win forms application.Please advice how can we do this.
Thanks
...
Hi
I have multiple asp.net sites. When a user logs unto one of the sites, I want to store a cookie telling me that a user has logged on. When the user later visits one of the other sites I have, I would like to read the cookie from that site.
AFAIK you neither can read cookies from or write cookies to other sites, so what could a worka...
I'm working locally across two "domains". I have enterprise.local and application.local virtual hosts on my machine and I need to set a domain cookie for "local" or ".local" I'm having some trouble getting the cookie to set properly, though. In application.local, I have this:
setcookie( 'iPlanetDirectoryPro', trim( $token_id ), '0', '/'...
Hey there,
I must admit, that I'm pretty much newbie to jQuery, though I want to somehow make this work.
I have a igoogle style content with sortable widgets with this code
HTML
<div class="column">
<div class="box">
<div class="box-header">
Header Widget
</div>
<div class="box-content">
<p>
Content wi...
I'm playing around with cookies. And I dont have any cookies called PHPSESSID.
Do i need it? Can i remove it?
Whats the "function" of it?
if (count($_POST)) {
setcookie("TestCookie", htmlspecialchars($_POST['val']), time()+3600);
}
print_r($_COOKIE);
Prints:
Array
(
[TestCookie] => blabla
[PHPSESSID] => el4ukv0kqbvoirg7nk...
I have a site on domainA.com. It includes file.js from domainB.com:
<script type="text/javascript" src="http://www.domainB.com/file.js"></script>
In file.js, I want to be able to set a cookie for domainA.com. How would I do this? It must be possible since Google Analytics does it for their __utma, etc. cookies.
...
I have a CurrentUser class with a static property whose value was stored in a cookie last time the user visited the website. I would like to be able to read the value of the cookie from this class. Is it possible? It looks like Request.Cookies is only available in web pages. A simplified version of what I'm trying to do is:
class Curren...
Basically, my client wants to make new visitors enter the site I'm working on through the splash page. Unfortunately, Google indexed the home page. So no one ever actually sees the splash page. Is there a way that I can make a .htaccess file create a cookie in the viewers browser that says "I'm not new" (or maybe showsplash=false). Then ...
Is there an equivalent to browser cookies for Smart Client / Click Once application development on .NET 3.5? Some place I can store cookies on the user's machine rather than the server.
Or to put it another way - what file location can you write to from a sandboxed Click-Once app that won't violate good security practices. I don't wa...
I only manually set 1 cookie on my social network site, I do rely heavily on php sessions though and I am wondering if sessions set any cookies behind the scenes?
I was just reading up on HttpOnly-cookies and I am just trying to figure out if I can use them any.
...
I have a php web application that uses big cookies to store a lot of users data. If I set mod_gzip on the apache server, will it compress only the page content or will it compress the cookies also?
...
Assuming I'm rolling my own session code, what's the right way to generate a unique and secure session id cookie in java.
Should I not be rolling my own but using something that's already been standardized?
I'm using gwt and the google app-engine platform.
How do I make sessions persist across browser/server restarts?
...
Hello,
I am using asp.net C# and looking for a reliable way to get genuine unique human hits to articles. My goal is to not count a hit if its a bot or non human visit. Anyone, that is blocking cookies or don't have cookies activated the hit should not count.
I am afraid that someone may try to rig hits on an article by sending a bunch ...