Re: Cookie problem

Tech-Archive recommends: Fix windows errors by optimizing your registry



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

.



Relevant Pages

  • Re: is it safe to store a cookie user id as a login for my site
    ... computer which stores their user id details and allows them to auto- ... login. ... i'm wondering whether this is safe, is it possible for a malicious ... user to find that cookie and change its value and therefore auto-login ...
    (comp.lang.php)
  • Re: Cookie problem
    ... and logs in, they get a cookie that stores their login information. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: is it safe to store a cookie user id as a login for my site
    ... i have a php site which allows users to save a cookie on their ... computer which stores their user id details and allows them to auto- ... user to find that cookie and change its value and therefore auto-login ... You could store one half of the user's password hash in the cookie. ...
    (comp.lang.php)
  • Cookie problem
    ... and logs in, they get a cookie that stores their login information. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Windows 98 cookie issue
    ... I have a property that stores a value to a cookie and retrieves it if the ... details are returned and when continuing stepping through the code the value ...
    (microsoft.public.dotnet.framework.aspnet)