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

How to get Cookies in Nodejs/Hapijs

I am new to NodeJs Development. I am using HapiJs framework. I have set cookie using following code: reply("hello").state('cookie_name', accessToken, { ttl: 365 * 24 * 60 * 60 * 1000, // expires a year from today …
Dimpal Singh
  • 157
  • 12
0
votes
1 answer

Setting up cookie

try { CookieManager manager = new CookieManager(); CookieHandler.setDefault(manager); CookieStore cookieJar = manager.getCookieStore(); HttpCookie cookie = new HttpCookie("user", username); URL url = new…
0
votes
0 answers

There is no HTTP_COOKIE key in $_SERVER

I'm using php with tomcat 8.5 My local and prodServer has same configuration. I can see my cookies in browser(with inspect element), but there is no HTTP_COOKIE value in my header and also there is no value in $_COOKIE. All cookie parameters are…
0
votes
0 answers

How do I create environment-specific cookies that don't persist through different environments in ASP.NET Core 2.0?

So right now I set up an application cookie in Startup.cs that is specific to whatever environment that I'm currently in (Development, Staging, Production). public void ConfigureServices(IServiceCollection services) { // ..snip.. …
Daath
  • 1,899
  • 7
  • 26
  • 42
0
votes
1 answer

Remove the Identity Server Cookie in Browser using Javascript

I'm using Identity Server for Single Sign On, I would like to delete the Identity Server Cookie manually using JavaScript from an appropriate Client application. I referred lots of tutorials but no one is given any solution for my requirement. I…
0
votes
0 answers

Why would IE11 drop cookies between requests?

I have a C# application that uses cookies to track user authentication (pretty standard stuff). On authentication, a cookie is created with a hash value relating to the database table containing user/authentication information. In…
Jon Story
  • 2,881
  • 2
  • 25
  • 41
0
votes
0 answers

Is data 128 bit or not

I'm trying to determine if a third party website is using 128 bit cookies. Ive looked in Fiddler and can see the below entries when i sign into the…
Computer
  • 2,149
  • 7
  • 34
  • 71
0
votes
1 answer

Browser won't store cookie

I'm running an angular 4 client on localhost:3000, which is communicating with a WEB API localhost:5000. My problem is, that I can't figure out why the browser refuses to store a cookie, when the server instructs it to do so. Client Request…
wodzu
  • 3,004
  • 3
  • 25
  • 41
0
votes
1 answer

Creating a CSV string in Razor foreach

I am trying to parse multiple page IDs into a cookie in Umbraco Razor. I have this piece of code @{ var siteroot = Model.AncestorOrSelf(1); HttpCookie eventCookie = new HttpCookie("eventCookie"); } @foreach (var child in…
Morten Hagh
  • 2,055
  • 8
  • 34
  • 66
0
votes
1 answer

putting ='s, ampersands and colons in a cookie

Possible Duplicate: Allowed characters in cookies I need to separate values in a cookie. So I chose &'s to separate name=value pairs just like I would in a URL. There can be multiple values too for a name, so I separate those with a colon. My…
at.
  • 50,922
  • 104
  • 292
  • 461
0
votes
0 answers

How to disable cookies for different url path

I have a particular cookie that needs to be disabled on different pages. Example: www.forcare.com // has a cookie set over all pages Now I need to disable the cookies on: www.forcare.com/de/ // and www.forcare.com/de/* Is this even possible?
0
votes
1 answer

JS: How to remove .domain.com cookie from www.domain.com

On the website that has a redirection from domain.com to www.domain.com there is a cookie __utmz that is set with this plugin: https://github.com/clancychilds/ReturnOfTheUTMZ/blob/master/compiled/latest/utmz.min.js Apparently, this cookie is set on…
user912830823
  • 1,179
  • 3
  • 14
  • 25
0
votes
2 answers

Why cookie is being deleted

I have an Asp.Net website, and have 2 cookies. I create these cookies by this code; public static void CreateCookie(string Cookie) { HttpCookie cookie = new HttpCookie(Cookie); cookie.Expires = DateTime.Now.AddYears(1); …
Bengi Besçeli
  • 3,638
  • 12
  • 53
  • 87
0
votes
0 answers

Shopping cart with only cookies

I am trying to create a webshop. First of all I can read Products from my Database and can show them in my Views. Now I want to create a Shopping cart where can I store the Products(ProductName,Price,Quantity,...). I have a View called "Details",…
cgame92
  • 29
  • 3
0
votes
1 answer

Net Scaler cookie Insert usage

In our load balanced Asp.net web application, Persistent NSC (Net Scaler) cookie is created and we were asked to remove it. Before removing we want to know What is NSC cookie? What is the use of NSC cookie in load balanced web application?