Is there way for ASP.NET to read cookies value that were set with Javascript in PHP page?
Thank in advance.
//Setting cookies with javascript in a PHP page. It is
// written from a third party that i can not changed.
<script LANGUAGE="JavaScript" >
function setCookie(cookieName,cookieValue) {
document.cookie = cookieName +"=" + cookieValue;
}
function Report(Item) {
setCookie("Rep","1"); // it can be 1, 2,3....
document.Form1.action= "mySite/dir/Report.aspx";
document.Form1.submit();
}
</SCRIPT>
//in the ASP.net Page load (C#) it always write
//"Rep is null".
//The asp.net page can not access the cookies????.
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if ( Request.Cookies["Rep"] == null)
Response.Write("Rep is null");
else
Response.Write("Rep: " + Request.Cookies["Rep"].Value.Tostring();
}
Thank in advance.
//Setting cookies with javascript in a PHP page. It is
// written from a third party that i can not changed.
<script LANGUAGE="JavaScript" >
function setCookie(cookieName,cookieValue) {
document.cookie = cookieName +"=" + cookieValue;
}
function Report(Item) {
setCookie("Rep","1"); // it can be 1, 2,3....
document.Form1.action= "mySite/dir/Report.aspx";
document.Form1.submit();
}
</SCRIPT>
//in the ASP.net Page load (C#) it always write
//"Rep is null".
//The asp.net page can not access the cookies????.
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
if ( Request.Cookies["Rep"] == null)
Response.Write("Rep is null");
else
Response.Write("Rep: " + Request.Cookies["Rep"].Value.Tostring();
}