Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

httpcookie

How do you update a cookie in PHP?

August 13, 2023 by Tarik
Categories php Tags cakephp, cookies, httpcookie, php Leave a comment

what is the default expiration time of a cookie

June 9, 2023 by Tarik

The default Expires value for a cookie is not a static time, but it creates a Session cookie. This will stay active until the user closes their browser/clears their cookies. You can override this as required. From the linked page: Setting the Expires property to MinValue makes this a session Cookie, which is its default … Read more

Categories c# Tags c++, cookies, httpcookie Leave a comment

Using Cookie in Asp.Net Mvc 4

May 16, 2023 by Tarik

Try using Response.SetCookie(), because Response.Cookies.Add() can cause multiple cookies to be added, whereas SetCookie will update an existing cookie.

Categories c# Tags action, asp.net-mvc-4, c++, cookies, httpcookie Leave a comment

Cookie path and its accessibility to subfolder pages

January 19, 2023 by Tarik

If we set the cookie to path ‘/subfolder1’, will the cookie will be made available to any page or subfolder beneath the folder? Yes. The cookie will be available to all pages and subdirectories within the /subfolder1 path.

Categories cookies Tags cookies, httpcookie Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa