• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • Last Modified:

Setting a Cookie using ASP

I have a page where I need to give the user a Cookie.
This works with IE, but not with Netscape?


 Dim cookieStr
 cookieStr = Request.Cookies("Nettet")("SearchEngine")
   Dim SearchString
   Dim Engine
   Dim RedirTo
   SearchString = Request.Form("SearchString")
   Engine = Request.Form("Engine")
   Response.Cookies("Nettet")("SearchEngine") = Engine
   Response.Cookies("Nettet").Expires = Date + 365
   Response.Cookies("Nettet").Domain = ".jfl.dk"
   Response.Cookies("Nettet").Path = "/nettet"
   Response.Cookies("Nettet").Secure = FALSE

  • 2
1 Solution
In Netscape browser,Goto Edit menu then goto preferences here goto cookies frame then select the radio button "Accept all cookies". Then it works.
jflAuthor Commented:
No it doesn't.
jflAuthor Commented:
"Accept all cookies" is on, so that's not the problem.
I have had no problem with this code - beware of Browser Version
This may be obvious but make sure that you RUN AT SERVER.
Response.Cookies("Application")("Alias")    = Session("Alias")
Response.Cookies("Application")("LastTime") = Date
Session("Alias")   = Request.Cookies("Application")("Alias")
Session("LasTime") = Request.Cookies("Application")("LastTime")

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now