Ask a Question related to ASP.NET General, Design and Development.
-
Josh King #1
Help with cookies
I'm having trouble accessing my cookies after they're set. If I do a
response.write on the cookie value immediately after it's set in code,
it writes out the cookie value as it should. But when I come back to
the page the cookie is null and I can no longer access it.
Here's my add code:
DateTime expireCookie = DateTime.Now;
expireCookie.AddYears(5);
HttpCookie vandalayCookie = new HttpCookie("VandalayCookie");
vandalayCookie.Expires = expireCookie;
vandalayCookie.Values.Add("UserName",opUser.Select edValue);
vandalayCookie.Values.Add("Password",txtPassword.T ext);
//Write cookie out to client
Response.Cookies.Add(vandalayCookie);
Here's my retrieval code:
HttpCookie VandalayCookie = Request.Cookies["VandalayCookie"];
if (VandalayCookie != null)
{
opUser.SelectedValue = VandalayCookie.Values.Get("UserName");
txtPassword.Text = VandalayCookie.Values.Get("Password");
}
My retrieval code always evaluates the VandalayCookie as null and
never retrieve the values. I've even added my site to my list of
trusted sites and sites that I accept cookies from and still no luck.
Is there something I'm not doing right?
Thanks,
Josh
Josh King Guest
-
Cookies in FMS
In my application Flash Media Server 2 makes HTTP requests to retrieve configuration data. Page that is requestet sets some cookies. I was very... -
php cookies
Is it possible to set php cookies to delete after a period of user inactivity & if so how? -
PHP and cookies
ok I have a question maybe this might help if you have $_COOKIE that is a session cookie in path '/' you also have a cookie $_COOKIE that is a... -
cookies under php 4.06
okay, i know this is stupid, and i'm gonna kick myself when someone points out the obvious... i've just put a site online, and found the server's... -
Some cookies are being set, some aren't
I've got a problem with cookies failing. Here's the setup- A staging server, RedHat Linux, with php 4.3 Main server, FreeBSD, also php 4.3 ... -
sailboat420 #2
Help with Cookies
I am preparing to build many html pages that will have questions followed by
check boxes, radio buttons and text fields for answers. I am trying to find a
tutorial that will guide me through the process of building cookies, so that
when the customer comes back or logs back in, what ever they have finished (for
example, questions 1 - 10) will still appear and they can continue where the
left off.
I own Studio 8, Captivate 1.0.1 and was wondering if i should do this is
flash, dreameweaver or captivate? Will i have to have a cookie on each page or
just on the first page of the intial document (html)?
sailboat420 Guest



Reply With Quote

