Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

161
Views
Access Cookie from different path under the same domain c#

Hi I have web component in folder under the root which create a cookie under this file path. I have aspx page and I need to access this cookie but I can't fine it

Cookie created from javascript has path "/library/scripts" while cookies created form C# page has path ="/"

Javascript file C:\localhost\library\scripts\myfile.js

  var myPath = '/';
  document.cookie = "Cookiename" + "=" + JSON.stringify(CookieValue) + "; path=" + myPath;

C# file C:\localhost\folder1\folder2\folder3\folder4\mypage.ascx.cs

 if (Request.Cookies["Cookiename"] != null)
            {
                cookieValue = Request.Cookies["Cookiename"].Value.ToString();
            }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!