Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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...

Note: I think as a programmer not as a human, so use my answer at your will
Posted

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()

}

Note: I think as a programmer not as a human, so use my answer at your will
Posted

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

Read the Fovean Chronicles

Because you just can't spend your whole day programming!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...