Thanks, Bonnie. My references aren't very complex. After validating the user in the login page, I set references in Session as follows:
Session["UserID"] = txtUserID.text;
Session["UserName"] = userobject.FullName;
The login then redirects to the default.aspx page with:
FormsAuthentication.RedirectFromLoginPage(txtUserID.Text, false)
Once in the default page, the Session information is available. I can retrieve it with userName = Session["UserName"].ToString();
As soon as I click on a link on the default page to redirect to a different page in the project, all of the session variable become null.
What's so frustrating about this is that this is my third ASP.NET application and I have used this technique in the previous two with no difficulty at all. I must have some setting in this environment wrong. I am using the personal IIS in my XP workstation. When I switch over to other projects in the same environment, they work fine. Puzzling.
Dick Harrold
>Dick,
>
>How about posting some code as to how/when/where you're setting the SessionState. I probably won't be able to help you with it (I haven't used SessionState yet, still struggling with ViewState), but I'm sure others will jump in to help if you can post more information.
>
>~~Bonnie
>
>
=========================================
Dick Harrold [DickHarrold@Yahoo.com]