cookies

share the same cookie between two website using PHP cURL extension

I want to get the contents of some emails in my gmail account. I would like to use the PHP cURL extension to do this. I followed these steps in my first try: In the PHP code, output the contents of https://www.google.com/accounts/ServiceLoginAuth. In the browser, the user input username and password to login. In the PHP code, save cook...

Javascript ajax GET call does not include cookie-sid on initial page load.

In my application, when /iframe is requested, I create a cookie and serve the iframe.html file. In the html file I use a Javascript Ajax call to request for user data (/user), which is called on $(document).ready and needs to pass the sid from the cookie (so I know the call is authenticated). The problem is that, the cookie-sid is not p...

Problems deleting cookies, won't unset (PHP).

I've tried searching the php manual and internet on how to delete cookies and I've tried it the exact same way they all say: setcookie("name", '', 1); or setcookie("name", '', time()-3600); But when I check the cookies in the cookies dialog in Firefox, it's still there with the same value. I set this cookie using the following line...

Javascript delete cookie next day

Hi, I was wonder if you can delete a cookie at the beginning of the next day. Lets say I log in to a website at 1:30pm and use it again throughout the day but at midnight or 1 minute past, in the new day, the cookie is removed. Many thanks for any help, C ...

I'm using a audio in my web page i need to play it first time but not on page refresh in php

I'm using a audio in my web page i need to play it first time but not on page refresh in php ...

Web Form Security

I set a cookie in the headers with an md5 hashed keyword. Then in my code, it checks for the exact matching cookie before displaying a form. Is this pretty much pointless? The form submits to an external site, so I am trying to secure the form without using captcha.. ...

Setting auth cookie timeout length based on role in ASP.NET

I want to allow admins to be logged in for longer than normal users. I don't see a hook for setting the cookie timeout programmatically or in a role-based way. Is this possible in ASP using Forms Authentication? Thank you in advance. ...

setting cross-subdomain cookies accessible to a sub-subdomain?

I've set a cookie with domain of .example.com. It is available for every first-level subdomain on my site, as it should be. It is not, however, available on nth level subdomains, i.e. sub.subdomain.example.com and too.many.subdomains.subdomain.example.com don't see the cross-subdomain cookie while subdomain.example.com does. Is there an...

Detecting if a browser is using Private Browsing mode

I'm building an extranet for a company paranoid about security. They want to make sure that (among other things) their users are browsing the site with the Private Browsing mode switched on in their web browser so that no cookies or history is kept. I found only this http://jeremiahgrossman.blogspot.com/2009/03/detecting-private-browsin...

PHP session cookie sessionid

in PHP i used session and cookie not urlrewriting with PHPSESSID. but when i opened cookie then i saw the key value pair.but one of them is path : / what does path mean,can you explain elaborately. if i change the path value to /abc/cdddddddddd/efc then what does that mean? ...

Is it possible to know if browser has cookies enabled on the very first access

Hello On a very first access to a website, is it possible to know if browser cookies are activated thanks to the GET request? Is it possible particularly in a J2EE context? On the server side (no ajax/js solution) ...

Where is .ASPXAUTH cookie

Hi In javascript alert(document.cookie); does not show the .ASPXAUTH Cookie although a sniffer is showing it, I need it because I have an AJAX Request to the server, the request should not take place when the user is already logged in, if I cannot check .ASPXAUTH for security reason, what I should do to check whether the user is alr...

Why jquery ajax not sending session cookie

I am getting logged out when I send request by ajax in a login session. I check headers sent by FireBug and show there was not cookie ...

Is it possible to make a shopping cart persistent in Ubercart

I would like users to be able to have persistent shopping carts. In other words, unless they check out the shopping cart explicitly the shopping cart with the same items should be available the next time they visit the site. Obviously this would be through the use of a cookie... Is this possible in Drupal? ...

Unicode Cookie Value

I am about to start to make a cookie with Unicode value (Japanese characters) is there any problem with Unicode Cookie value? in IE 7 IE 8 Firefox, Safari, Chrome? Thank you ...

jQuery Collapse (with cookies), default open instead of closed?

Hi. I've got a jQuery snippet which basically allows a user to toggle a div, open or closed - their preference is saved in a cookie. (function($) { $.fn.extend({ collapse: function(options) { var defaults = { inactive : "inactive", active : "active", head : ".trigger", group ...

Authenticated MediaPlayer

Trying to stream a video from an external server. _mediaPlayer = new MediaPlayer(); _mediaPlayer.setDataSource( this, Uri.parse( _uri ) ); Works fine for an openly accessible server, but throws an Exception when the server requires authentication. I've looked at the code inside setDataSource and haven't found any way to set a c...

Is it possible to set more than one cookie with a single Set-Cookie?

One HTTP Set-Cookie directive can only hold one cookie, is it right? I mean, one single name=value pair? ...

Browser Client Side Storage aka a large Cookie

Hi, I need to store about 20-30k or data on the client side when using a website. I was using a cookie, but this is to small for my needs. Is there something else that I can use? I need to be able to do this via javascript. Server side storage is a last resort but not what I am looking for. I need it to work for Chrome, IE and fire...

Posting within PHP and receiving only cookie

Hello I have a question. It might be sound ridiculous, but let me explain what I want to accomplish. Right now I try to embed open source forum to by site and I want to leave forum and my site databases split. When my site users are logging in I want them also automatically be logged in to the forum system. For that I want to login wit...