cookies

Why can't I pass user sessions between subdomains?

First of all, I have used ALL of the suggested methods in this SO article: http://stackoverflow.com/questions/644920/allow-php-sessions-to-carry-over-to-subdomains For your convenience, here are the tips I already followed: Here are 3 options. Place this in your php.ini: session.cookie_domain = ".example.com" In your ...

Possible to read/write cookies to be used by two different ASP.NET web apps?

Wondering if it is possible for my claims aware application (ASP.NET) to save a cookie that can be read by the ADFS Service (ASP.NET also). This is so I can give it the URN of a specific client at the time of the SSO based on the subdomain. However I am not sure if a website can read cookies from a different website or not. ...

Can I store cookies for different domain in Javascript

Please, I would like to set cookies for my browser by my script running at my domain.. but I want to set cookies from another domain. For example, I would like to set cookies that twitter.com sends me (when I would visit by browser), but I don't want to visit their page for the first time. Only when I visit their page after running my s...

Possible to make Flash cache large sound assets?

I have written a game in Flash (AS3/Flex SDK/MXMLC) that streams music and sound files from my server. I'm concerned about bandwidth - the audio components are nearly 3MB, and if the game becomes popular it will really rack up the bandwidth charges. Is there any way to make Flash cache the audio components once they've been downloaded,...

How to remove existing class name and add a new one with jQuery and Cookies?

How can you remove a class name and replace it with a new one. <style> .red {background-color: #FF0000;} .green{background-color: #00FF00;} .blue {background-color: #0000FF;} </style> <body class="red"> <ul> <li><a href="">red</a></li> <li><a href="">green</a></li> <li><a href="">blue</a></li> </ul> </body> In this case when you click...

How Come Closing A Tab Doesn't Close A Session Cookie?

I'm using session-based cookies with my website. To my complete surprise, I noticed if I set a session cookie (not a persistent cookie), close a tab, and then reconnect to the site, the session cookies are still there. That's not what I would have expected, actually. I would have expected the session cookies to be deleted. If you close...

Cookies in ASP.NET

I'm looking for a good example of storing data in a cookie using ASP.NET. Could someone show me an example? ...

Problem setting cookie expiration to DateTime.Max (December 31, 9999)?

We're supporting legacy code that is dropping a cookie and setting the expiration to DateTime.MaxValue: HttpCookie cookie = new HttpCookie(cookieName, value); cookie.Expires = DateTime.MaxValue; It seems that on some browsers (which we are not logging), this cookie expires immediately--or may not even be getting dropped. According to ...

Control link preferences with radio button controls and jquery

For any links with a particular CSS class, I'd like to control whether the links open in the same window, a new window or a pop-up (using onclick), based on the user's selection from a group of radio buttons -- and then save that choice in a cookie (all using jQuery). Anyone know how to accomplish this? ...

Programmatically set browser cookie (Firefox)

I know from this question that Firefox 3.0 and up stores its cookies in an SQLite database. My question is: can you access this database from other desktop programs in such a way that you could add a cookie? I realize this has security implications. However, I do not want to read them at all. I want to be able to set one cookie if po...

What is a good way to handle cookies in Pylons?

I've seen a few references that say there is WSGI middleware to do it, but I don't know a lot about the choices for WSGI middelware that handles cookies. ...

Is there a concept of server-side cookies in ASP.NET?

Hi guys, Not sure if I am missing a basic ASP.NET concept here, but is there a concept of server-side cookies. I know how a HTTPCookie is created on server and sent to client. But are server-side cookies something which allow to use cookies even if the client disables cookies? ...

Google App Engine Set-Cookie fails to use my expiration date

I am trying to set a cookie in my Google App Engine page: self.response.headers.add_header('Set-Cookie','CookieName=1234; expires:Sun, 31-May-2009 23:59:59 GMT; path=/;') The expiration date is not showing up in the browser. So it deletes itself at the end of the session. Here is the output from curl -D: HTTP/1.1 200 OK Content-T...

Managing cookies in Java

What's the best practice to implement sign in "Remember Me" feature in Java? Obviously, storing cookies with username and password in user's browser is not secure enough. Create authentication token in cookies and db instead? Any simple examples? ...

accessing cookies, hopefully in javascript

I am working on a Firefox add-on that will allow users (all of whom are part of a specific group; this add-on is very limited in audience scope) to see the status of their authentication cookie from the status bar. We all have to authenticate to access work-related sites, but we get no warning when the cookie expires, so this causes anno...

.net cookies, do I have to send to browser?

Hi, After I create or modify a httpcookie, do I have to do add it to the response.cookies collection? (if yes, only if its a new cookie or even if I am modifying one) ...

figuring out why asp.net authentication ticket is expiring

I need help figuring out why my authentication ticket is expiring after about an hour on my hosted website. But if I run the site locally the authentication ticket stays alive for the correct amount of time. This is my localhost web.config: <authentication mode="Forms"> <forms loginUrl="~/Account/LogOn" timeout="20160" slidingExpir...

How to handle cookies in JavaScript ?

I am working on a project where it requires to check cookie and tell whether it is 20 minutes old or not. So I have written once code which is like this. This is only javascript code I have pasted. function checkcookie() { var difftime= getcookie(); // further operation comes here } var cookieminutes; function getcookie() { ...

Cookie in Javascript(login page design)

Previously I had posted a program and asked about handling cookies in Javascript. I had posted one code and u can find it in my other question. Many gave good answers and I aslo tried their solutions. But since I am new to this html and javascript may be I dont know how to find bugs and debug it. So can anybody please post their solutio...

Cookies are Not Being Set Properly in PHP Script

Im very new in php and try to use cookie but it is not woking in my site, can anyone guide me please , what is going wrong in my code: <?php session_start(); ?> <script> function Redirect(url) { location.href = url; } </script> <?php define('_VALID_ACCESS', true); include_once "includes/connect.php"; include_once "includes/login.php...