I am writing a .NET application that uses cookies to store a login token. I'd like the user to be able to log into multiple installations of this application on the same server (let's say jacob.local/Devel and jacob.local/Stable), so I want to set the Path property for the cookies appropriately. Currently I'm using Request.ApplicationP...
Im making a login/logout class that logs users in, sets cookies based on user's choice. The user enters their email/password and it checks the database, email/password combo exists a session is created, and a cookie is set (with the users id) and the user is redirected... I then have a function that logs users in by taking the user id sa...
Hi, how should I store user data in asp.net mvc? Let's say a user want to see 50 records per page. I wanted to save it in Session, but if I am doing it right, the Session resets every time a new controller is initialized. So where? A cookie?
...
I'm trying to access a SOAP API using Suds. The SOAP API documentation states that I have to provide three cookies with some login data. How can I accomplish this?
...
Is there any way to set a cookie that is not readable on subdomains? In other words, have the cookie available on domain.com, but not www.domain.com or xyz.domain.com.
//this is what i'm "intending"...
setcookie($name,$value,$expires,'/','domain.com');
//however, this is how it behaves:
setcookie($name,$value,$expires,'/','.domain.com')...
I have tried implementing Google code into my own code yet I have been unsuccessful. Im unsure how? You could say Im very mush still a novice.
I start by explaining the code:
After clicking a link on the navigation, a click event fires on the main page, that show/display hidden links in the iframe. These links link too other pages.
Th...
I want to read the sessionid in cookie which is automatically generated by asp.net.
such as ASP.NET_SessionId.
but when i use javascript:
document.cookie = "ASP.NET_SessionId=;"
since i want to set the ASP.NET_SessionId to be empty.
but after the javascript executed, i found instead of change the ASP.NET_SessionId to empty, system gene...
The setup:
ASP.Net website with login required before accessing any directory of the website
`
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
`
the website is also a host for WCF service which is used by external applications to bypass the firewall (service isn't used by the website at all)
externa...
I'm making a simple ajax login system using cookies to remember username or login automatically on the next visit. Everything works ok, the cookies are set 10 days to the future, I can see them when I go and see Firefox's cookies but they are deleted when I restart the browser.
The cookies are set with setcookie() from a php script calle...
In ASP.NET , How can i retrieve a cookie value in the Session_End event of global.asax file ?
The following code is throwing an exception "Object reference not set to an instance of an object"
string cookyval = "";
try
{
cookyval = Context.Request.Cookies["parentPageName"].Value;
}
catch (Exception ex)
...
Is there any way to access cookies from Chrome extension?
this code
document.cookie.length
always returns - 0.
...
Im implementing ckfinder on a cakephp dev, im having problems with the ckfinder which you need to have some kind of auth passing a session. But the sessions that i assign dont seem to be working on the config file nor cookies.
Thanks in advance
...
I am working on an an application that allows a user to search for a particular book on Amazon using a given search criterion (e.g. title, keyword, author.) I am currently attempting to store these search results to a MySQL database, but am struggling with the concept of relationships.
It seems natural that I would structure the models ...
We have a web application running on ASP.NET 3.5. It is viewed by the world as one URL but in reality there are multiple IIS boxes hosting the application controlled by a load balancer.
My problem is that it is a sensitive application with strict security controls around it, and that post authentication if you open another browser to th...
I need to preserve the same session id when navigating over a site's pages using C#.Net (like a crawler). I found a couple of methods, a http sniffer was very handy, to compare what my IE browser was sending (HTTP request) and receiving from the web server (HTTP response), as the important information is in the headers (that are not disp...
Due to target audience I am using .net cookieless sessions in auto-detect mode and time to time I get visitors redirected with cookiless session url like
domain.com/(S(jdhdghdghd))/default.aspx
Problem is, if I call this url after session expired .net will re-create it. What I want to find out is a way to force .net to create another ...
I want to check if a user has cookies enabled.
Most solutions involve:
1. creating a cookie
2. redirect the user to a custom page or the same page.
3. Read the cookie.
The issue I have is in the 2nd step. Should I use a query string while doing a response.redirect so that in the next trip I know the cookie has already been set and that...
Hello, help please? I wish to develop a module to do something very simple with PHP. I am challenged by the Drupal API. I am using version 6.
Goal:
1) Determine if user is viewing a particular node (role is irrelevant)
2) If yes, check to see if cookie is set
a) If cookie is set, do nothing
b) If cookie is not set, then set cookie...
We are trying to decide the best decision to maintain state across our web application. We are incline to use Encrypted cookies on the browser, but some of our developers think we should go with Session variables on the server.
The main reasons why I think Cookies are a best approach is just because we will not depend on the app serv...
Hi,
imagine the following scenario: I open a CURL connection and pass some XML-Logindata via POST. The server answers with an 302 redirect, where the session cookies are set and redirects me to a following "welcome"-page. If I enable FOLLOWLOCATION the cookies set on the redirection-page get lost and the welcome-page fails with a "sessi...