cookies

Response.Redirect in HttpModule

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...

Login system (PHP) Cookies and Sessions

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 ...

Pulling a value from one jQuery function into another

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) { $(...

Ruby's open-uri and cookies

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:/...

Javascript Cookie

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? ...

Why is IE7 rejecting session cookies from a page in a frame?

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...

Of HttpOnly and document.cookie

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'...

cookies in winforms

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 ...

Store cookie for other site

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...

Problem Setting Cookie w/ PHP

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', '/'...

jQuery UI Sortable and Cookie

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...

What is PHPSESSID?

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...

Setting cookie from a JavaScript file on another domain

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"&gt;&lt;/script&gt; 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. ...

asp.net is it possible to read the value of a cookie from a static class?

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...

How can I make new site visitors see the splash page through mod_rewrite?

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 ...

.NET - Click-Once / Smart Client Applications - Browser Cookie Equivalent?

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...

Do PHP sessions set any cookies?

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. ...

Will mod_gzip compress the cookies

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? ...

session id cookie in gwt rpc

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? ...

Reliable Way to get Unique Hits to an Article

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 ...