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

Hello,

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
            Response.Redirect("LoginSuccess.aspx")
        Else
            Response.Redirect("LoginFailure.htm")
        End If

---------------------------
The values being retrieved in another page:

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

---------------------------
A section of the web.config file:

    <sessionState
            mode="InProc"
            stateConnectionString="tcpip=127.0.0.1:42424"
            sqlConnectionString="data source=127.0.0.1;user id=sa;password="
            cookieless="false"
            timeout="20"
    />

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 - TestAXDoc1.zip [0/1]

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

 

 
Powered by phpBB® Forum Software