Cookies can't be read

Discussion in 'ASP .Net' started by Steffen Loringer, Jul 12, 2005.

  1. Hi,

    my application has a starting page - A.aspx. This page keeps only
    Javascript writing the client browser resolution and transfering to page
    B.aspx:

    document.cookie='width=' + window.screen.width
    location.href ="B.aspx"

    If I debug page B.aspx at the Page_Load event I can only find the ASP
    Session ID cookie, nothing else (also with tracing on).

    If I do a Server.Transfer("A.aspx") on page B.aspx I can read the
    'width' cookie without any problem at the Page_Load event of B.

    I expect in both cases to find the "width cookie", but it's not working.
    Is there any mistake?

    Thanks
    Steffen
     
    Steffen Loringer, Jul 12, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alex Nitulescu

    Response.Cookies vs Request.Cookies

    Alex Nitulescu, Feb 3, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    8,503
    Hans Kesting
    Feb 3, 2005
  2. Andy Fish
    Replies:
    3
    Views:
    6,539
    Fredrik Lindner
    Nov 6, 2003
  3. user
    Replies:
    3
    Views:
    672
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    Mar 31, 2007
  4. _Who
    Replies:
    7
    Views:
    2,686
  5. bb
    Replies:
    0
    Views:
    564
Loading...

Share This Page