I have written two asp pages, one that writes a cookie and one that reads the cookie. I can't seem to get the cookie to show up on the second page.
page1.asp:
<%strUser = UCASE(Request.ServerVariables("LOGON_USER"
)
Response.Cookies("UserID"
("User"
= strUser
Response.Cookies("UserID"
.expires = date() + 1%>
page2.asp:
<%strUser = lcase(Request.Cookies("UserID"
("User"
)
strFrom = user & "@mydomain.com"
Response.Write "<BR>USER: " & strFrom%>
page1.asp is a UI to pass some varibles into a Crystal Report. On the Crystal Report, I have a link that opens a new window with page2.asp in it. What I'm trying to do is get the user id into page2.asp without the user having to log back in. But for some reason, when the new window is opened, It will not get the cookie. Any ideas?
Thanks,
mwa
page1.asp:
<%strUser = UCASE(Request.ServerVariables("LOGON_USER"
Response.Cookies("UserID"
Response.Cookies("UserID"
page2.asp:
<%strUser = lcase(Request.Cookies("UserID"
strFrom = user & "@mydomain.com"
Response.Write "<BR>USER: " & strFrom%>
page1.asp is a UI to pass some varibles into a Crystal Report. On the Crystal Report, I have a link that opens a new window with page2.asp in it. What I'm trying to do is get the user id into page2.asp without the user having to log back in. But for some reason, when the new window is opened, It will not get the cookie. Any ideas?
Thanks,
mwa