Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Request.Cookies does not work

Status
Not open for further replies.

Ankor

Programmer
Mar 21, 2002
144
US
I have a logon screen and main menu stored in the separate folder on dev server. When I login, I create a cookie for the user id to use it in the entire system, and I can read this cookie from the mainmenu. As soon as I click the link that should connect me to the system with the files stored in another folder, my cookie is lost. Request.Cookies returns an empty string. I never had this issue before, and I don't have it in production, but I cannot find the difference between production and development. Your ideas are greatly appreciated.
 
Is the "link that should connect me to the system with the files stored in another folder" on another server or web app?
 
It's a different web app, but all aps are in the same pool.
 
Try clearing out all of your browser's cookies and then reproducing the problem. Then object the folder where your browser stores the cookies and look at how they have been named.

For security reasons, the browser will not send a cookie named www1.foo.com to along with any HTTP request for URI on www2.foo.com. So you want a cookie just named plain foo.com

 
Went to Internet options and deleted cookies, then refreshed the mainmenu page. My cookie reference was still there, so I don't think they are stored in Cookies under my profile or under temp files. When I click the link leading to the different folder, my cookies become unavailable.
 
You should try to use Domain property. I think * or *.* should be enought

Response.Cookies("cookie_name").Domain="*"


________
George, M
Searches(faq333-4906),Carts(faq333-4911)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top