cookies encoding

G

Guest

hello all.

in an asp page a do this:
Response.Write(Request.Cookies("ActualId")) and i recieve this:
ˆ‚œ‚¬ŠœvÔäÊÂèÊÎêÒ

and i have an asp.net page that a do the same think
Response.Write(Request.Cookies("ActualId")) but i receive this:
%u02C6%u201A%u0153%u201A%AC%u0160%u0153v%D4%E4%CA%C2%E8%CA%CE%EA%D2

what i have to do to receive in my asp.net page to receive the same text
?????


thanks for your help
 
G

Guest

i'm creating the cooki by javascript with this function:
function SetCookie(sName, sValue)
{
var ExpireDate = new Date();
var expiredays = 5;
ExpireDate.setTime(ExpireDate.getTime() + (expiredays*24*3600*1000));
document.cookie = sName + "=" + escape(sValue) + ((ExpireDate) ? ";path=/;
expdate=" + ExpireDate.toGMTString() : "");
}

i need to "roolback" the javacscript function in server sice
 
F

funky_gezza

Hi,

Why dont you create cookies using the reponse object? For example:
Response.Cookies("MyCookie") = "CookieValue"

You cant retrieve the value by using the request object:
Request.Cookies("MyCookie")

David
 

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

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,278
Latest member
BuzzDefenderpro

Latest Threads

Top