Questions tagged [httpcookie]

A class in the System.Web namespace of the .NET framework which provides a type-safe way to create and manipulate individual HTTP cookies.

A class in the System.Web namespace of the .NET framework which provides a type-safe way to create and manipulate individual HTTP cookies.

409 questions
0
votes
1 answer

Sharepoint 2010 setting a cookie expiration date seemsto work when viewed from browser but server code sees 01/01/0001 expiration

here is the to add the cookie to the request HttpCookie cookie = new HttpCookie(myCookie); cookie.Expires = DateTime.Now.AddDays(30); cookie.Value = myValue; cookie.Domain = myDomain; cookie.HttpOnly = true; …
Anthony
  • 536
  • 1
  • 8
  • 27
0
votes
1 answer

Browser cookie doesn't work

I am trying to send data from one html page to another. I am using cookies to save info that will be retrieve by the another wabpage. However, when the next page wants to get the value of the cookie, it is empty. I think the cookie is being lost…
0
votes
2 answers

PHP - Working of Cookies

I am facing a difficulty in understanding the usage of cookies in PHP, Please consider the following code snippet public function preExecute() { setcookie("testCookie", "Hello123", time() + 31536000, "/", WebServer::getServerName()); echo "Before…
Subin_Learner
  • 347
  • 1
  • 4
  • 15
0
votes
3 answers

cookie onload event page redirect

How to perform any action after cookie load completed. e.g we have to redirect the url after cookie load complete. $(document).ready(function() { // Handler for .ready() called. }); We have cookie loaded after page load through javascript. So i…
Chitta Sukla
  • 63
  • 4
  • 9
0
votes
1 answer

AuthenticationForm - Cross Site Cookies

I've 2 web sites, the first one is myFirst.domain.com and the second one is mySecondSite.domain.com. They stay on two different web servers and my goal is to allow cross site authentication (my real need is shared FormsAuthentication Cookie). I've…
bit
  • 934
  • 1
  • 11
  • 32
0
votes
3 answers

Set cookie version of incoming httpServletRequest

I have a client that is sending to me a version 1 cookie with a comma delimite value. This should be ok in version 1 of cookies but not allowed in version 0. So this it the cookie test.cookie=1,1 Now when I read Cookie[] cookies =…
Gurnard
  • 1,773
  • 22
  • 43
0
votes
0 answers

Authenticating a user for a single app with multiple domains

I have one asp.net web application, but two different domains point to this web app. For instance: www.one.com and www.two.com both point to the same web app. I have an issue where I need certain pages to be on a specific domain (due to some…
0
votes
2 answers

I want to check whether a page is using cookies or not?

Is it possible that I hit a page and in response I get the information that this page is using cookies.
Mohsin
  • 21
  • 1
  • 4
0
votes
1 answer

Getting information from a cookie to hide rows from a gridview in MVC3

I am trying to return a view that excludes rows to which the user had clicked to hide and a cookie is generated storing information of which rows the user wishes to hide. My issue is that the cookie only contains one value, and so my select…
-1
votes
1 answer

Cookie maintain in ASP.NET

I want to record the single cookie for maintain the quantity of a product and all product. how i can do this in c#. are their any way to do this when i can check the existence of product in cookie. are someone have the code for it. thanks
docs
  • 1
-1
votes
5 answers

Cookies, HTTP GET, and Query Strings

The United States District Court for the Southern District of New York in re Doubleclick Inc. stated: "GET information is submitted as part of a Web site's address or "URL," in what is known as a "query string." For example, a request for a…
NoahD
  • 8,092
  • 4
  • 27
  • 28
-1
votes
1 answer

How to read localstorage cookie from server side?

We have one requirement where we have to capture the website cookies. We can capture the other cookies except localstorage cookies in httpclient response. But how can we read the localstorage cookies at server side. As localstorage are resides at…
-1
votes
1 answer

Howto set cookie_httponly?

So i have my code where i use session $session->start(); if (...){ ... $session->set('session', $someVar); } And Ive got some problem when i try in console document.cookie. How can i set cookie_httponly, im using symfony. And where should i set it?…
frozenme
  • 19
  • 1
  • 3
-1
votes
2 answers

Error message "Cannot implicitly convert type 'String' to 'Int'"

I keep getting the debug error "cannot implicitly convert type 'string' to 'int'". I bold the Text where I got that error. public partial class Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { …
No One
  • 42
  • 1
  • 1
  • 6
-1
votes
1 answer

send cookies from subdomain

I'm building a web app that uses http only cookie sent by the backend for session data. Now my backend is hosted at xyz.domain.com My client side is domain.com (note - m not using www.domain.com ) Now when the client receives cookie , the browser…
Ansh Agarwal
  • 171
  • 2
  • 13
1 2 3
27
28