I have been tasked with updating some code in a DNN portal that one of our old programmers added. This is an ASP.net application.
Here is the cookie logic that they have added.
This is in the page_init sub and seems to work for most users.. but we are having an issue with some.
The problem arises when the user clicks a link to a classic ASP page that needs to read these cookies.
My question to you all is....
1. Is there anything more that needs to be done to the cookies to make them readable by classic ASP?
2. Does the cookie expire in 10 minutes or 10 minutes of inactivity.
Here is the code that is in the classic ASP page that reads the cookie and does the redirect.
What is strange is this works for some users, but others it does not. It has nothing to do with there login criteria to our system as we cant replicate this on any of our test systems or test environments.
Thanks for any help or insite you may have.
Here is the cookie logic that they have added.
Code:
Dim ABCCookie As New HttpCookie("EmployeeNumber", _empNo)
ABCCookie.Expires = DateTime.Now.AddMinutes(10)
Response.Cookies.Add(ABCCookie)
Dim ABCCookie2 As New HttpCookie("UserID", _username)
ABCCookie2.Expires = DateTime.Now.AddMinutes(10)
Response.Cookies.Add(ABCCookie2)
This is in the page_init sub and seems to work for most users.. but we are having an issue with some.
The problem arises when the user clicks a link to a classic ASP page that needs to read these cookies.
My question to you all is....
1. Is there anything more that needs to be done to the cookies to make them readable by classic ASP?
2. Does the cookie expire in 10 minutes or 10 minutes of inactivity.
Here is the code that is in the classic ASP page that reads the cookie and does the redirect.
Code:
dim cookieVal : cookieVal =Request.Cookies("EmployeeNumber")
response.Redirect("[URL unfurl="true"]https://www.domain.com/login.asp?id="[/URL] & cookieVal)
Response.Write (cookieVal)
What is strange is this works for some users, but others it does not. It has nothing to do with there login criteria to our system as we cant replicate this on any of our test systems or test environments.
Thanks for any help or insite you may have.