Problem persisting Session variables. 
Author Message
 Problem persisting Session variables.


I'm having problems persisting the values of my session variables from page
to page in my ASP.NET application.  Following is some of the code:

The variables being set:

        If modDatabase.FindUser(txtUserName.Text, txtPassword.Text) Then
            Session("FirstName") = gstrFirstName
            Session("LastName") = gstrLastName
            Session("UserName") = txtUserName.Text
        End If

The values being retrieved in another page:

        lblWelcome.Text = "Welcome, " & Session("FirstName") & " " &

A section of the web.config file:

            sqlConnectionString="data source=;user id=sa;password="

Any insight would be appreciated.
Thanks in advance.

Tue, 02 Aug 2005 22:36:25 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Persisting an ADO2.5 Stream object to a Session-variable

2. ASP.NET Session Not Persisting Between Pages (and Projects)

3. Persisting a recordset in the Session object

4. Persisting Session level objects

5. Problem with SESSION VARIABLES using netscape when opening a new instance of the browser

6. Help! Storing Arrays in Session Variables - problem

7. Session variable Problem

8. Splitting Session Variable into several variables (array?)

9. Type mismatch when comparing session variable to page variable

10. Persist a VBScript variable.

11. Problem in Persisting ActiveX Document Data in IE - [0/1]

12. Problem in Persisting ActiveX Document Data in IE - [0/1]


Powered by phpBB® Forum Software