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

FormsAuthentication not working. IsAuthenticated always return False

I am developing website by using ASP.net and I want to implement formbased authentication. In web.config I use this
Prageeth Liyanage
  • 1,612
  • 2
  • 19
  • 41
0
votes
5 answers

ASP.NET Webforms site using HTTPCookie with 100 year timeout times out after 20 minutes

I have a site that is using Forms Auth. The client does not want the site session to expire at all for users. In the login page codebehind, the following code is used: // user passed validation FormsAuthentication.Initialize(); // grab the user's…
Rob
  • 1,390
  • 1
  • 12
  • 25
0
votes
0 answers

Does Cookie work in Ajax Request and Response?

We have a Node.js application that invokes a Spring controller. For a PoC purpose, I am creating the cookie in the Spring controller before returning the JSON response to the Node.js application. Cookie cookie = new Cookie("myCookie",…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
0
votes
1 answer

$_Cookie Issue, Access Log count is different from actual count

While working with Web Development in php, I have put below check somewhere in my .php file AbcController.php if(isset($_COOKIE['auth'])){ //server side logging code //...some code here But while fetching the Access logs for AbcController.php…
0
votes
4 answers

How to add HttpCookies to GET and POST requests in android?

I am using HttpCookies to maintain online session on the server. On login, through a POST request, I am getting the cookies using the following code. HttpPost httpPost = new HttpPost(url); CookieStore store = …
rohanpro
  • 132
  • 7
0
votes
2 answers

Deleting an HttpCookie Not Just Its Value

Using MVC I am creating a cookie on login like the following: Response.Cookies.Add(New HttpCookie("UserId", Id)) I searched for ways to delete cookies so I can use it on Logout, and I found this: If Response.Cookies("UserId") IsNot Nothing Then …
HelpASisterOut
  • 3,085
  • 16
  • 45
  • 89
0
votes
2 answers

HttpCookie gets deleted for unknown reason

Alright, so. For some reason, this cookie is getting deleted/overwritten. It does exists for awhile. well, for one cycle of Code 2, but when code 2 is called again VIA a page load, it doesnt contain my data. What the cookie contains is a encoded…
0
votes
2 answers

UIWebView not save cookies

I use UIWebView that users login in accounts. Users may login with facebook account. He is click button Facebook and opens UIWebView. After login UIWebView close and users may use your personal account. But when I close my app and open it again…
user3669924
0
votes
1 answer

HTTP call with a custom header(cookie)

As I am a C# newbie, it would be really helpful if I could get some support here. I have an Android phone and an application from Android phone should be usable in Windows 8 phone as well. The problem is not with the working of functionalities but…
dmurali
  • 211
  • 1
  • 6
  • 14
0
votes
1 answer

Is there a way to rewrite a cookie name in nginx?

I'm trying to logout the user by removing a cookie and redirect him to the home page. Is it possible to do it without adding lua-nginx-module?
0
votes
0 answers

Accessing cross-domain intranet cookies

I own 2 domains, A and B, hosted with web applications. From an application in domain A, I call a service in B, which takes some time. So I show a loading GIF. In the service in B, I set a cookie along with the response in Java: HttpResponse resp; …
Prashanth
  • 31
  • 7
0
votes
1 answer

httpCookie cause the page not to load

I'm using VS 2010, vb.net and asp 3.5. I have a simple default.aspx page that has Dim ctx As HttpContext = HttpContext.Current Dim cookie As HttpCookie = ctx.Request.Cookies("SessionGUID") Me.lbl1.Text = cookie.Value.ToString the page…
jvcoach23
  • 2,765
  • 10
  • 34
  • 50
0
votes
1 answer

MVC external authentication with the [Authorize] attribute

A site authorizes through a separate system. Once the user is authorized, I want to store some additional information with their Auth cookie. I am able to do this using the code below. var settings = new JsonSerializerSettings { ContractResolver =…
Ryan Langton
  • 6,294
  • 15
  • 53
  • 103
0
votes
1 answer

Error with HttpCookie in Asp.net MVC

i have been researching for a good while now and cannot figure out why I am getting these 2 errors with my HttpCookie. My first error is in this line : HttpCookie cookie = new HttpCookie( …
Shawn
  • 2,355
  • 14
  • 48
  • 98
0
votes
1 answer

How to replace a HttpCookie in MVC3

The question is quite straightforward: How to replace a HttpCookie in MVC3? (Assuming we have access to the HttpContext instance)
Cristian E.
  • 3,116
  • 7
  • 31
  • 61