Sessions and Cookies dont work

D

DougS

I have a simple ASP.Net application, framework 1.1, sp1, VS2003. I cant set
a session variable or a cookie. How can I tell if there is something wrong
with my environment?

Dim cookie As HttpCookie = New HttpCookie("UserID", txtName.Text)

cookie.Expires = DateTime.Now.AddDays(3)

Response.Cookies.Add(cookie) 'there is not a txt file in my cookies folder

Session code:

Session.Add("RepID", txtName.Text)

When I reference this session in another subroutine on the same page the
session is NOTHING
 
D

DougS

I ran aspnet_regiis /ua to remove asp.net and then ran aspnet_regiis /i to
reinstall it. That fixed the problem. It would be nice to know why it flakes
out like that. I've lost hours of dev time because asp and iis are so flaky.

DougS
 

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

Similar Threads

Cookies will not expire (noob question) 4
Asp.net 2.0 - Cookies 2
cookies in asp.net 2
Cookies 0
cookies question 3
problem with cookies and graphics 0
cookies.... 1
cookie.domain bug?? 2

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top