-
Tornado - .dbLogin Logout Button
Frank,
We are using the .dbMenuParams and .dbMenuData to control different aspects of the program. Incorporating the .dblogin presents a problem in this case. There is a main program containing 2 tabs which launch two different ASPX files. How do we place a logout button on this main page.
Paul
-
Explain more. Are you using 2 Tabbed Menu pages to hold 2 aspx programs and you want to place Logout buttons on both?
FK
-
Yes, I am using a two tabbed page with two aspx programs. However, I would like to have the login/logout controlled on the tabbed page. Is this possible, or is control limited to the two aspx programs? In any case, please explain how this is done....
-
>>..the login/logout controlled on the tabbed page....
you mean you need a logout button on both pages for the separate aspx programs? If so, is that the default?
Still not clear.. give me some sample code.
FK
-
Frank,
Just to clarify-
We have 2 tabbed pages on one single main page. You have to login, then the main page comes up with the 2 tabbed pages included.
We want a logout button on the main page (not on either of the tabbed pages) so users can logout at any time.
John M
-
So you want to HIDE the logout buttons in selected pages ? If that is the case it is easier to implement.
FK
-
No, as of right now, after you log in, the logout buttons do not ever appear on either of the 2 tabbed pages... you have to go back into the main login screen and re-enter your username to actually logout.
Even though that doesn't even work, we still just wanted a logout button on the mainpage and not on any of the tabbed pages.
Any thoughts?
JM
-
Make a simple nwind example for me so we have a common ground to confirm problem and fixes.
FK
-
Frank-
We are trying to come up with a solution for logging out, and didn't know if you had any ideas on this matter.
As of right now, you can log in, and then logout on any of the tabs in the main program. This however presents a problem - If a user forgets to log themselves out, they will still get the 'multiple login prohibited' error when they go back into the program to login, thereby having to log themselves out again just to log back in.
We were wondering if there was a way that it can log that user out if they close the browser window, OR if that isn't possible, not allow them to close the window unless they log out first. We would prefer if it could log them out if they close the window, but we aren't sure if this was a difficult task or not.
Thanks
JM
-
if user sign off w/o loggin goff then the logoff with occurs when the session ends. Look at your global.asax ->
Sub Session_End(ByVal sender As Object, ByVal e As EventArgs)
Application.Lock()
Dim UserSession As ArrayList = Application("UserSession")
Dim NamePassword As ArrayList = Application("NamePassword")
Dim who As Integer = UserSession.IndexOf(Session.SessionID)
UserSession.RemoveAt(who)
NamePassword.RemoveAt(who)
Application("UserSession") = UserSession
Application("NamePassword") = NamePassword
Application.UnLock()
End Sub
FK
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|