Cookies not working in japanese vitual folder.

M

Manjunatha

I created an asp page that writes to cookies and copied it to a japanese virtual folder.

The cookie writing code is below.

first.asp
var sUserId = new String();
var sPassword = new String();
var cCookieExpiryDate = "December 31, 2010";

sUserId = "manjunatha";
sPassword = "password";

Response.Cookies("ERMSUserId") = sUserId;
Response.Cookies("ERMSPassword") = sPassword;
Response.Cookies("ERMSUserId").Expires = cCookieExpiryDate;
Response.Cookies("ERMSPassword").Expires = cCookieExpiryDate;

Created another page in the same virtual folder which displays the values of the cookies.
The cookie reading code is below

second.asp
Response.Write("User Id : " + Request.Cookies("ERMSUserId"));
Response.Write("Password : " + Request.Cookies("ERMSPassword"));

I executed the first.asp and later executed second.asp. The second.asp didn't display the cookie values i have written in first.asp.
I gave an English name to the virtual folder and repeated the same process again. This time it displayed cookie values.

Can anybody tell me what is the problem and suggest a solution.

Regards,
Manjunatha
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top