tagged [cookies]

Automatic Cookie Handling C#/.NET HttpWebRequest+HttpWebResponse

Automatic Cookie Handling C#/.NET HttpWebRequest+HttpWebResponse Is there any way to automatically handle cookies in .NET with the HttpWebRequest/HttpWebResponse objects? I'm preferably looking for an...

27 Aug at 16:35

What is the location of session cookies in IE7?

What is the location of session cookies in IE7? Should I be able to see per-session cookies, created by IE7 (on Vista) here: C:\Users\myUsername\AppData\Local\Microsoft\Windows\Temporary Internet File...

Safe way to encode a cookie value in c#

Safe way to encode a cookie value in c# When storing a value in a cookie using C#, what is the best way to encode (or escape) the value so that it can be retrieved and decoded/unescaped reliably? I'm ...

23 Apr at 17:29

Uses for MachineKey in ASP.NET

Uses for MachineKey in ASP.NET What different ways are Machine Keys useful in asp.net? I think the following are correct but thought there may be more. 1. Multiple applications can use the same cookie...

How do I set path while saving a cookie value in JavaScript?

How do I set path while saving a cookie value in JavaScript? I am saving some cookie values on an ASP page. I want to set the root path for cookie so that the cookie will be available on all pages. Cu...

24 May at 13:43

How long Cookies last, which return with JsonServiceClient Request

How long Cookies last, which return with JsonServiceClient Request I am working with Xamarin-Forms application.To authenticate user I use ServiceStack CredentialAuthProvider.When authentication succes...

How to read cookies from HttpResponseMessage?

How to read cookies from HttpResponseMessage? This is my recent code: ``` HttpClient authClient = new HttpClient(); authClient.BaseAddress = new Uri("http://localhost:4999/test_db/_session"); authClie...

How do you configure HttpOnly cookies in tomcat / java webapps?

How do you configure HttpOnly cookies in tomcat / java webapps? After reading Jeff's blog post on [Protecting Your Cookies: HttpOnly](http://www.codinghorror.com/blog/archives/001167.html). I'd like t...

31 Aug at 14:52

Creating and Reading Cookies on Blazor Server Side

Creating and Reading Cookies on Blazor Server Side What is the easiest way to create and read cookies on Blazor server side. It seems all the solutions out there is for Blazor Web-assembly, and whenev...

Do session use cookies?

Do session use cookies? This is an interview question asked a month ago.... Do session use cookies? If so,how do they do so? Assume `Session["UserId"]=1` how does this session variable uses cookies in...

7 Apr at 03:29

How to secure the ASP.NET_SessionId cookie?

How to secure the ASP.NET_SessionId cookie? I have set the .ASPXAUTH cookie to be https only but I am not sure how to effectively do the same with the ASP.NET_SessionId. The entire site uses HTTPS so ...

12 May at 13:26

How can I validate a JWT passed via cookies?

How can I validate a JWT passed via cookies? The `UseJwtBearerAuthentication` middleware in ASP.NET Core makes it easy to validate incoming JSON Web Tokens in `Authorization` headers. How do I authent...

17 Jan at 19:47

How to delete a cookie?

How to delete a cookie? Is my function of creating a cookie correct? How do I delete the cookie at the beginning of my program? is there a simple coding? ``` function setCookie(c_name,value,1) { docu...

6 Jul at 02:25

I'd like to kill a session after a user has been inactive for 20 minutes. in PHP

I'd like to kill a session after a user has been inactive for 20 minutes. in PHP > [How do I expire a PHP session after 30 minutes?](https://stackoverflow.com/questions/520237/how-do-i-expire-a-php-s...

6 Jul at 13:2

What are allowed characters in cookies?

What are allowed characters in cookies? What are the allowed characters in both cookie name and value? Are they same as URL or some common subset? Reason I'm asking is that I've recently hit some stra...

2 Dec at 15:59

ServiceStack Http Utils Set Cookie

ServiceStack Http Utils Set Cookie I am trying to use ServiceStacks Http Utils, but for some reason I can't seem to be able to set the JSession cookie I received from logging in via basic auth. This i...

22 Dec at 00:3

Differences between cookies and sessions?

Differences between cookies and sessions? I am training in web developement and am learning about & . I have some knowledge of `HttpSession` - I have used it in some of my sample projects. In browsers...

7 May at 18:6

How to programatically 'login' a user based on 'remember me' cookie when using j2ee container authentication?

How to programatically 'login' a user based on 'remember me' cookie when using j2ee container authentication? i'm using form based authntication in my WAR. i want to implement a 'remember me' cookie s...

5 Sep at 21:35

Javascript Cookie with no expiration date

Javascript Cookie with no expiration date I would like to set up a cookie that never expires. Would that even be possible? I don't want to make the date really large, I am just wondering if there was ...

10 Feb at 14:49

Alternative to cookie based session/authentication

Alternative to cookie based session/authentication Is there an alternative to the session feature plugin in servicestack? In some scenarios I cannot use cookies to match the authorized session in my s...

Destroy cookie NodeJs

Destroy cookie NodeJs I am using [Cookies](https://github.com/pillarjs/cookies) module for setting cookie. Here is following my code: But in documentation I haven't found how to this co

27 Oct at 16:40

Share cookies between subdomain and domain

Share cookies between subdomain and domain I have two questions. I understand that if I specify the domain as `.example.com` (with the leading dot) in the cookie that all subdomains can share a cookie...

8 Dec at 21:45

Can I set the cookies to be used by a WKWebView?

Can I set the cookies to be used by a WKWebView? I'm trying to switch an existing app from `UIWebView` to `WKWebView`. The current app manages the users login / session outside of the `webview` and se...

6 May at 06:33

How to insert CookieCollection to CookieContainer?

How to insert CookieCollection to CookieContainer? After I get response from httpwebrequest, I'd like the cookies obtained to save for the purpose of using them in another httbwebrequest. However, I'd...

13 Feb at 15:56

How to store string in a cookie and retrieve it

How to store string in a cookie and retrieve it I want to store the username in the cookie and retrieve it the next time when the user opens the website. Is it possible to create a cookie which doesnt...

13 Dec at 11:45