http cookie use question

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
 
D

DNE

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top