Manojk
December 4th, 2002, 07:10 PM
Hi,
I am facing a strange problem. When I first open my web page , on page load event I am setting the cookie values. The code used is
If Not Request.Cookies("HerbalifeUser") Is Nothing Then
If Request.Cookies("HerbalifeUser").HasKeys Then
intLanguageID = CInt(Request.Cookies("HerbalifeUser")("Languageid"))
intCountryID = CInt(Request.Cookies("HerbalifeUser")("Countryid"))
End If
Else
Response.Cookies("HerbalifeUser").Path = "/"
Response.Cookies("HerbalifeUser").Expires = DateAdd(DateInterval.Year, 2, Now())
End If
If Request.QueryString("LanguageID") <> Nothing Then
intLanguageID = Convert.ToInt32(Request.QueryString("LanguageID"))
End If
Response.Cookies("HerbalifeUser")("languageid") = intLanguageID
Response.Cookies("HerbalifeUser")("countryid") = intCountryID
..Now I close the browser and come again, On page load event I can access these cookies ..But on the endsub of page load event, this cookie is getting destroyed( file is deleted from the temporary internet folder) and hence I am not able to access the cookie values in my next page.
any pointers in solving this will be higly appreciated.
Thanks,
Manojk
I am facing a strange problem. When I first open my web page , on page load event I am setting the cookie values. The code used is
If Not Request.Cookies("HerbalifeUser") Is Nothing Then
If Request.Cookies("HerbalifeUser").HasKeys Then
intLanguageID = CInt(Request.Cookies("HerbalifeUser")("Languageid"))
intCountryID = CInt(Request.Cookies("HerbalifeUser")("Countryid"))
End If
Else
Response.Cookies("HerbalifeUser").Path = "/"
Response.Cookies("HerbalifeUser").Expires = DateAdd(DateInterval.Year, 2, Now())
End If
If Request.QueryString("LanguageID") <> Nothing Then
intLanguageID = Convert.ToInt32(Request.QueryString("LanguageID"))
End If
Response.Cookies("HerbalifeUser")("languageid") = intLanguageID
Response.Cookies("HerbalifeUser")("countryid") = intCountryID
..Now I close the browser and come again, On page load event I can access these cookies ..But on the endsub of page load event, this cookie is getting destroyed( file is deleted from the temporary internet folder) and hence I am not able to access the cookie values in my next page.
any pointers in solving this will be higly appreciated.
Thanks,
Manojk