cookies

can't get Httponly cookie value

Iam when I submitting a request from a browser im setting a cookie in the response object using this code pResponse.setHeader(SET-COOKIE, token=randomvalue; HttpOnly; secure) but when this request is submitted and in the target page when i try to get this cookie using the pRequest.getCookieParameter("token") I am getting null. In this ca...

.htaccess alongside sessions and cookies

I'm currently working on a website that has a .htaccess authentication user/pass (I'm really not familiar with this type of authentication). I want to know if it's possible to pass the data from that form to a session or a cookie or do I have to pass to a normal login system. Reference links are welcomed :) ...

Malformed utmcc in utm.gif request

I have a page that is using Google Analytics to track page views as well as track events within the page. The initial _gat._trackPageview request works as intended (under normal circumstances, details to follow). However, on subsequent utm.gif requests, it seems there is a malformed utmcc argument in the querystring. The campaign trackin...

jQuery pagination for json results

What is the best way of doing a pagination? I would also need to save the current page, so that when I click a link it would save the page I was on. So if I'm on page 2 of the pagination and click one link and then get back to pagination page it would remember that I was on page 2. I get the results/data from Json request where I have o...

same cookies are visible in my all pages

I created 2 separate page that uses cookies for auto login. But if I login both of them and if i refresh one of the page , I can see that site recognize the other cookie. Like if I print in both site user name to screen , after refresh I see the same user name in both site. I am running 2 sites in my localhost. And I did not specify loca...

How to capture the "JavaScript SetCookie event" in a WebBrowser?

How to capture the "JavaScript SetCookie event" in a WebBrowser? I want to synchronize the cookie to a CookieContainer when a javascript setcookie event occurred simultaneously. such as <script>document.cookie="testcookie"</script> Is there an event related to this ? thanks. Environment: .Net 2.0 WebBrowser, C#, VS2008 ...

Tracking Traffic Source

Does Google Analytics store the utm_source, utm_medium paramaters in a cookie or something similar that I can access on my own site using PHP? - OR - does anyone have an example of code I could use to identify a traffic source ie. PPC, Natural etc. ...

FormsAuthentication isn't preserving the UserData field after Postback in .NET 3.5

I've created a FormsAuthenticationTicket from scratch, but found that when retrieving it at a later time, the UserData isn't coming back. Here is the code used: FormsAuthenticationTicket ticket = new FormsAuthenticationTicket( 1, user.UserId, DateTime.Now, ...

javascript setting and retrieval of cookie [Resolved]

not sure what i am doing wrong below. any pointer is greatly apprecited. i am being returned "-1". Not sure if i am creating incorrectly (cookies exist and are listed at 161 or so), but not sure if mine is in this group. <html> <body> <div id="cookieLaunch" onClick="cM()">abcdef</div> <script> function cM(){ var cookie_date = new Dat...

How to save multiple data variables into one cookie, using jQuery

I have made pagination with jQuery and now I would like to save the selected state/page to cookie. I would need to save tab-id, offset and limit values. I know that I can write to cookie like this: $.cookie("example", "foo"); And then read it: $.cookie("example"); But how I can save all those three thing into cookie? And especiall...

Current url into cookie file.

Short question is : "How do I save current url into cookie file?" And the whole problem is as follows. I have to save current filters that client have applied to my grid in his cookie, that next time he logs in the data looks just as he wants it to look like. The service doesn't have any "login" stuff, just provides available data to th...

jquery, delete cookies

Hi, i with jquery delete cookies $.cookie('name', '', { expires: -1 }); refresh page and still cookies is in browser (memory), alert('name:' +$.cookie('name')); show name: Gloris. Why? Thanks ...

Javascript: Declare variables from RegEx, write to cookie.

This question has two parts. First, I need to isolate two strings of text inside a span with the class "test01". Here is what the span looks like: <span class="test01"> <table width="100%" cellspacing="0" cellpadding="0"> <tbody><tr><td> <div id="ctl00_ctl07_pnTopBar"> <a href="/Member/MyHome.aspx">My Account</a>&nbsp;&nbsp;<a ...

CakePHP Session without Cookies

I want to make an application that doesn't need cookies but still has Sessions. Therefor I create the SessionID and take it in the URL with me. My problem now is that the HTML helper doesn't recognize this and all links that are outputted are without the session id. Does CakePHP have to be told to do that or isn't there any mechanism f...

How can I log in to remote site with PHP cURL, then redirect to that site

Hi, I've seen this asked in several ways but can't find an answer that works. I've created a page that logs into a remote .NET-based site using PHP/cURL. Works great as far as it goes -- I can get the data back from the logged-in page via curl_exec and do whatever with it but what I really need to do is to redirect the user to that ...

How to set a php session cookie to all websites?

Hi all, i'm making a adwords-like to my clients websites only, and i wan't to put the cookies to save the information to all domains (and not just domain mydomain.com or subdomains .mydomain.com, i mean all). Code Sample: setcookie('var_name', 'var_value', null, "/", '.mydomain.com' ); Can anybody help me? Thanks ...

jQuery - Change class on click and remember via cookie

Hey folks. I am trying to set up a page where if you click on a link the class will change. One step further this would have to be stored in a cookie. Each A tag has a unique id. For example, below is my example link: <a href="#" id="unique1" class="up">Link text</a> When a user clicks the link then the class would need to be changed...

Set Cookies on subdomain?

I have the site blah.com. I need to set 3cookies + use google analytic. I would like to set it as www.blah.com so when i serve images (on blah.com or static.blah.com) it is cookie-less. Is this possible? How do i do it? I am using jquery-cookies and asp.net ...

Silverlight or browser losing cookies on hyperlinked windows?

Am using Silverlight 4 hosted in an ASP.NET MVC page, e.g. ht tp://test.mysite.com/main. I make a call to the server from Silverlight using WCF and get some values back. One of these values I write as a cookie using: HtmlPage.Document.SetProperty("cookie", newCookie); I can then view the cookie text using: MessageBox.Show(HtmlPage.Do...

Session Lost when closing the browser.

Hi, I setup my Session time out. <session-config> <session-timeout>11520</session-timeout> </session-config> Each time when I close the browser and open it again by calling the servlet, I see that new session is created. It can be seen from SessionCreated method executed in HttpSessionListener each time when browser reopened. I'm...