cookies, asp, and frames


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: cookies, asp, and frames

  1. #1
    Lester Guest

    cookies, asp, and frames


    I have cookies set on the home page.
    From there a link is into a 2 frame body page.

    I need to pass the cookie info from the home page to BOTH of the body frame
    pages.

    Variables are called from the cookie info, so its a must.

    Haven't been able to make it work successfully in these frames

    Any ideas?????

    Thanks




  2. #2
    Rasmus Guest

    Re: cookies, asp, and frames


    Lester,

    Try setting the Path property of the cookie to "/" and the Expires property
    to some date in the future, and do this both on read and write.

    Ex Write:
    Response.Cookies("Info").Expires = Date + 365
    Response.Cookies("Info").Path = "/"
    Response.Cookies("Info") = "Work's or not?"

    Ex Read:
    Response.Cookies("Info").Expires = Date + 365
    Response.Cookies("Info").Path = "/"
    sInfo = Request.Cookies("Info")

    Now you also need to remember to place this code in the beginning of you
    ASP page.

    This works 4 me.

    /Rasmus


    "Lester" <lester@klinternet.com> wrote:
    >
    >I have cookies set on the home page.
    >From there a link is into a 2 frame body page.
    >
    >I need to pass the cookie info from the home page to BOTH of the body frame
    >pages.
    >
    >Variables are called from the cookie info, so its a must.
    >
    >Haven't been able to make it work successfully in these frames
    >
    >Any ideas?????
    >
    >Thanks
    >
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center