DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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
    >
    >
    >



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links