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

Security: ASp.NET Identity HTTPOnly Cookie with SSL

This is a general question as I am used to User object being stored in the session and I am learning the new identity framework. I see a lot of talk about sending down "Claims" as apart of the cookie. So that way you don't have to re-look up the…
user1941432
0
votes
1 answer

Why are my site's cookies not working anymore?

Here is what my page cookies list looks like before doing anything: I run through this code: I get this result: I can get it to say Account under Name, Value as CookieName1 and the value in userName along with the expire time only if I rename…
Khaltazar
  • 296
  • 1
  • 7
0
votes
1 answer

Quirky cookie behaviour

A colleague of mine asked me to take a look at some cookie behaviour. He created simple web app that created a cookie and inserted the value of a text field, he then checked the cookie collection on the next page to see it had been inserted and…
m.edmondson
  • 30,382
  • 27
  • 123
  • 206
0
votes
0 answers

What kind of Object does cookie container take?

I have the following code: What do I put as the second argument for GetPage? The second argument should be the previous cookie request of the same url. for example I put google.com as the first argument to get the cookie when I make a get Request,…
Puzzle
  • 25
  • 2
  • 2
  • 7
0
votes
1 answer

C# Cookie is not saving its information

Scenerio - I am writting a web app that based off of which login box you use (database1 and database2) it will connect you to the cooresponding database. I have set the web.config to hold both connection strings. On the On_Authenticate method of…
EvanGWatkins
  • 1,427
  • 6
  • 23
  • 52
0
votes
1 answer

Return Cookie along with Object from .NET Web API

I'm using .NET Web API and I wish to send the newly created cookie along with the string which was generated in the Web API. The C# Code: public Tuple CookieMessage() { string result = "Cookie Created…
user6060080
0
votes
1 answer

Does Node.js Request node store HTTPOnly cookies?

I would like to store the cookies that I receive in a HTTP response and send them to the server in the next HTTP request. I know that HTTPOnly cookies "dont like" JS. So does the Request node (using node.js) store the HTTPOnly cookies in jar if set…
0
votes
0 answers

jquery create cookie and access it in vb.net

I'd like to set a cookie with jquery and access it in server side code. this is what I came up with so far: in jquery: $.cookie("MyKey", "MyData", { path: "/" }) in vb.net (serverside code): If Request.Cookies("MyKey") IsNot Nothing Then Dim…
Sara Nikta Yousefi
  • 1,467
  • 5
  • 21
  • 35
0
votes
0 answers

HttpContext.Current.Response.Cookies.Add give that error Response is not available in this context

I want to try create cookie in csharp class HttpCookie musteriCookie = new HttpCookie("Musteri"); musteriCookie.Name = "END"; musteriCookie.Value = "END"; musteriCookie.Expires =…
user1688401
  • 1,851
  • 8
  • 47
  • 83
0
votes
0 answers

HttpCookie exist local-IIS but IIS server it does not exist

I have the next code C#: protected void Page_Load(object sender, EventArgs e) { HttpCookie ckie = new HttpCookie("Juridico"); ckie.Value = DateTime.Now.ToString(); ckie.Expires = DateTime.Now.AddDays(1); //le asigno el valor 1 en caso de que sea…
Craycel
  • 1
  • 2
0
votes
1 answer

Adding Cookie to Cookie Manager in android app from SharedPreference

I am having an issue with adding cookie on the cookie manager during startup. Problem I am trying to solve is - to add the cookie in Sharedprefrence during login response and when application is killed or exited, retrieve that cookie and add to my…
0
votes
1 answer

How to use CHttpCookie in Yii2

I have code bellow use yii\web\CHttpCookie; $user_identifier = md5(rand()); $cookie = new CHttpCookie('user_identifier', $user_identifier); $cookie->expire = time() + (60*60*24*365*5); But output error, Please tell me how to use HttpCookie Class…
luongit
  • 117
  • 2
  • 13
0
votes
2 answers

Java: BasicClientCookie's setExpiryDate and HttpCookie's setMaxAge

I want to convert apache BasicClientCookie to java.net.HttpCookie, or the opposite. I find BasicClientCookie is missing the max-age attribute which is avaiable in HttpCookie, however, there exist the expires attribute in the BasicClientCookie. How…
mianlaoshu
  • 2,342
  • 3
  • 27
  • 48
0
votes
0 answers

redirect if cookie exists

i want to check, if a sso cookie is set. The cookie checkups are in different applications. My sso domain is something like cas.sso.example.com and my/our application domain is something like app.example.com or app.ex.example.com. I used a short php…
puQ
  • 31
  • 7
0
votes
3 answers

how to add serial key to client system when he visit our website

i want to add 3 serial key to client system using httpcookie when he visited my website my website off course in asp.net MVC but serial key is different different not same. when i add a 4th cookie then 1 key is automatically deleted. how i can do…
DELETE me