raviprakashg Posted July 3, 2006 Share Posted July 3, 2006 hi friends,i'm newbie in asp. net i have problem creating cookies and the code is Dim Cki_UserInfo As HttpCookie Cki_UserInfo = New HttpCookie("UserID") Cki_UserInfo.Value = rs.Fields(3).Value & "_" & fullname & "_" & userroleid Response.Cookies.Add(Cki_UserInfo) i use to create cookie and this is written when clicking LogIn Button but i can'nt able to retrive the cookie value using Response.Cookies("UserID").Value in another page, i can'nt understand whats happening there. r iam in correct way?Pls help me, Very Urgentthks Link to comment Share on other sites More sharing options...
pulpfiction Posted July 3, 2006 Share Posted July 3, 2006 This is to retrieve the cookie value.. Dim a As String = Convert.ToString(Request.Cookies("login").Value)Response.Write(a) Link to comment Share on other sites More sharing options...
pulpfiction Posted July 3, 2006 Share Posted July 3, 2006 This will give you a better idea..http://www.startvbdotnet.com/aspsite/forms/cookies.aspx Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now