kaisersoze Posted August 20, 2004 Posted August 20, 2004 My development machine hostname is "Devel11" I was developing an asp.net application and during development when i run the application it opens like "http://localhost/Appname/default.aspx" once user selectes few things and navigates to othe pages i write a cookie. Everything works fine it i use localhost. but once i try with http://Devel11/... then it is not writing the cookie and my application in not working as it should work. can any one tell me whats happening, cause it perfectly working when i use localhost and not working if i use hostname.... please... Quote Note: I think as a programmer not as a human, so use my answer at your will
Administrators PlausiblyDamp Posted August 20, 2004 Administrators Posted August 20, 2004 Is the browser configured to allow cookies from that domain name? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
kaisersoze Posted August 20, 2004 Author Posted August 20, 2004 how to check that. I am checking by the below line, let me know other wise.. If (Request.Browser.Cookies == false) { Response.Write("The browser does not support cookies. ...") Response.End() } Quote Note: I think as a programmer not as a human, so use my answer at your will
TheWizardofInt Posted August 20, 2004 Posted August 20, 2004 This happened to me, too, until I realize that, even on the same PC, your two different locations will have different cookies. If you are relying on the cookie for the devil site to have the same cookie for the new site, it won't. Allow on your app for there always to be no cookie Quote Read the Fovean Chronicles Because you just can't spend your whole day programming!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.