June 28, 200124 yr Newbies Hi, I use WebCompanion to share out my database and use WebSecurity Database to do the security check. It will prompt me the password at the very first time when I accessing the database. However, when I click Home, and click the database again, it won't prompt me for password. I guess it should be the "session timeout" issue for web browser visiting, or I haven't logout the database. How can I "logout" and relogin to other user? or how can I set the session timeout ? Thanks alot! Kent
June 29, 200124 yr quote: Originally posted by maddog: Hi, I use WebCompanion to share out my database and use WebSecurity Database to do the security check. It will prompt me the password at the very first time when I accessing the database. However, when I click Home, and click the database again, it won't prompt me for password. I guess it should be the "session timeout" issue for web browser visiting, or I haven't logout the database. How can I "logout" and relogin to other user? or how can I set the session timeout ? Thanks alot! Kent Kent, This is a subject that has been the bain of many a discussion. As you correctly deduced, it's a browser function, and as such the only way you can effectively "logout" is to close the browser to end the session. Your only other alternative is to create a cookie that has a specific value when the user "logs" in. When they log out it clears the value from the cookie. Each of your pages has an IF statement at the top that checks for this value. If the value exists, that means the user is logged in and they can view the page. If the value does not exist, then that means they are logged out and it displays a login page for them to log in. That's your best shot at this time.
March 8, 200421 yr Proton, Can you explain to me how I would set the cookie (if statement) for each page ? What would the code look like for something like that?
Create an account or sign in to comment