http cookie use question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm struggling with using the HttpCookie object on a code behind. Used in the page works great
I'm getting a: Type 'HttpCookie' is not define

I've tried adding the namespace to the vb form but no luck

Imports System.Data.Sqlclien
Imports System.Dat
Imports Syste
Imports System.Web.U
Imports System.Web.UI.WebControl
Imports System.Web.UI.HtmlControl
Imports System.Web.HttpCooki

It's use

'Now set cooki
Dim objCookie As New HttpCookie("nasbawebsitenew"
objCookie.Values("userid") = memberdata3("USER_EMAIL"
objCookie.Values("userpassword") = memberdata3("USER_PASSWORD"
objCookie.Values("datecreated") = Date.Now(
objCookie.Expires = DateTime.MaxValu
Response.Cookies.Add(objCookie
 
Why not use the Session object instead of managing data at the HttpCookie
level? The CookieContainer should take it from there.

--

Ori Millo (MCSD)
Solutions Consultant
SEA Software Ever After
http://www.s-e-a.com.au
 
Back
Top