Re: Cookie problem
- From: Alexey Smirnov <alexey.smirnov@xxxxxxxxx>
- Date: Thu, 02 Aug 2007 08:34:32 -0000
On Aug 2, 5:31 am, Bill Nicholson <namewitheldbyrequ...@xxxxxxxxx>
wrote:
Maybe I don't understand cookies correctly. When some visits my site
and logs in, they get a cookie that stores their login information.
When they come back, that info is read from the cookie and they can
log in without having to remember their id/pw.
Assume the site iswww.foobar.comIt works as long as they browse towww.foobar.com. If they browse to foobar.com it doesn't see the
cookie. It they browse towww.foobar.com/Stuff.aspx, it doesn't see
the cookie.
What am I missing? Do I need to store the cookie differently?
Response.Cookies("CookieName").Value =
tmpObject.Text.Trim
Response.Cookies("CookieName").Expires =
DateTime.Now.AddDays(1000)
The cookie looks fine - I checked it through the browsers (IE 6 and
FireFox).
Thanks,
Bill
Cincinnati, OH USA
Hi Bill,
add Trace="true" to the @Page directive at the start of the page, then
you should see details of your cookies
<%@ Page Trace="true" ... %>
Hope this helps to find the problem
.
- References:
- Cookie problem
- From: Bill Nicholson
- Cookie problem
- Prev by Date: Re: memory leak in asp 2.0
- Next by Date: Re: How to create a modular ASP.NET application ?
- Previous by thread: Cookie problem
- Next by thread: Re: Cookie problem
- Index(es):
Relevant Pages
|