Write cookies from subdomain and read from another subdomain without changing web.config
I have a simple question. I have two different projects like
I have a simple question. I have two different projects like
I have used ASP.NET in mostly intranet scenarios and pretty familiar with it but for something such as shopping cart or similar session data there are various possibilities. To name a few:
Why can’t I use HttpContext or HttpCookie?
Is there a special using?
I use a javascript function to store the cookie:
I have an API action that returns a HttpResponseMessage.
API address is like: http://localhost/login?authcode=xxx
I’ve been searching for an answer to this for a while but the problem seems quite complex and I’m struggling to find an answer.
I have a site that uses the default SqlMembershipProvider and FormsAuthentication. I can use the built-in Login Controls and/or programmatically call all the methods to authenticate a user and get the same result – the user is authenticated and a cookie is created, but the cookie does not appear to be valid since I can’t get into any page that requires authentication.
I have 2 web applications.
The first web application contains ASP.NET web pages and used a Membership provider for authentication.
The second web application is strictly an OData WEB API site that requires authentication.
I want to download and parse webpage using python, but to access it I need a couple of cookies set. Therefore I need to login over https to the webpage first. The login moment involves sending two POST params (username, password) to /login.php. During the login request I want to retrieve the cookies from the response header and store them so I can use them in the request to download the webpage /data.php.