Those of you familiar with my last thread will know that, due to the way my various domin names were pointing at one site, i was trying - and failing - to read cookies accross domains.

We got that fixed, and, for a few days, the site worked fine.

This time, my hosting company assures me that all the correct host headers are set up, and that a similar error can't be the cause of the following problem:

A user logs in to the site. The login page (having checked their login details against the database) sets some session variables, writes a cookie, and redirects them to the forum page. Code looks like this:

Code:
if(!rs.EOF){
Session("myUsertype")=parseInt(rs.Fields("usertype").value);
Session("myUsergroup")=parseInt(rs.Fields("usergroup").value);
Session("myUserID")=parseInt(rs.Fields("id").value);

Response.Cookies("userID")=parseInt(rs.Fields("id").value);
Response.Cookies("userID").Expires="December 31, 2003";

strRedir="forum.asp?uid=";
strRedir+=Session("myUserID");
Response.Redirect(strRedir);
}
else{
Response.Redirect("login.asp?fail=true");
}
This, in reality, does the following:

- Correctly creates the session var and writes it in the redirect url.
- Redirects to forum.asp - which can't find said session var.
- Doesn't write any non-session cookies.

So:

1. Why is it creating a session var and promptly losing it again?
2. Why isn't it writing a cookie?

I'm completely baffled.