469,331 Members | 1,749 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,331 developers. It's quick & easy.

Cookie problem in IIS 6.0 as a result of IIS recycling ?

Ive developed a website using ASP.NET 2.0 & deployed it on IIS 6.0.Im using Cookies to store user related information. The expiry of this cookie is set for 7 days. In IIS one new application pool is created to be used by my web site. This application pool is configured to recycle for every 24 hours.
Now the problem is after recycling the server is not accepting cookies & appending the cookies which i create through my code.

This is what Im doing to test application.

1)Ive browsed the application from browser & ensured that cookies is created.This cookies will be expired after 7 days after its creation.That means if i close the my browser & navigate to the site with in 7 days it should show the content relevant to me based on the cookie.
2) After the app pool is recycled , if i navigate to the site the cookie is not identified by the server or website.The cookie is still available in browser(this i can ensure if my browser is Mozilla Firefox).if i restart the web server & open the website in my browser its working fine.

What might be problem ?
Addition info :
*The application or above problem has got nothing to do with ASP.NET Session.
*The application is working perfectly fine in IIS 5.0 (This gives me a conclusion that there is nothing wrong in my code).

Is there any idea ?
Mar 2 '09 #1
0 2140

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

13 posts views Thread by Manlio Perillo | last post: by
1 post views Thread by Display Name | last post: by
5 posts views Thread by Miljana | last post: by
3 posts views Thread by Ricky Chan | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.