Subject: Problem with Logging in
Posted By: JRMotz Post Date: 4/11/2006 9:40:18 PM
I can't seem to log in a user. When I hit the submit button it goes through fine and redirects back to the main page, but it doesn't recognize that the user is logged in.

I think it may be a problem with the cookies. I don't know if there is something I need configure on the server or not.

If anyone can help me, I would appreciate it
Reply By: Maxxim Reply Date: 4/13/2006 4:52:01 PM
try to search in this forum for "cast not valid"

the code for all pages with authentification must be:


#Region " Web Form Designer Generated Code "


...

Private designerPlaceholderDeclaration As System.Object

        Protected Overrides Sub OnInit(ByVal e As EventArgs)
            MyBase.OnInit(e)
            InitializeComponent()
        End Sub

        ' This call is required by the Web Form Designer.
        <System.Diagnostics.DebuggerStepThrough()> _
        Private Sub InitializeComponent()
            AddHandler Me.Load, AddressOf Page_Load
        End Sub

#End Region

        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) ' Don't write here' Handles MyBase.Load


sometimes, when you debug your project, this pages change automatically.
a poor way to solve that  is to search the wrong pages, change it, then close all the pages in the visualstudio, and then debug your project... otherwise, if you still have any page open, the program can change that page and write "Handles MyBase.Load"

if anyone know a better way, please reply!

Max

Reply By: JRMotz Reply Date: 4/13/2006 8:29:25 PM
im still confused. I can't get it to work. I think it's just not reading the cookie or something, because if I go into my temp folder I can see that the cookie was made... but it won't read it.


Go to topic 2919

Return to index page 314
Return to index page 313
Return to index page 312
Return to index page 311
Return to index page 310
Return to index page 309
Return to index page 308
Return to index page 307
Return to index page 306
Return to index page 305