-
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
-
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
Forum Rules
|
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
|
Bookmarks