darrenomeara12
|
| Posted: 08/04/2004, 9:27 AM |
|
I have a small problem which some of you may be able to resolve. after a period of time the session will timeout and the ccdlookup function which I use to retrieve the username falls over. i.e ccdlookup error message. I guess this is because of a timeout issue. But how is this resolved.
include.user_name.Value = CCDLookUp("first_name","tblusers","user_id="&CCGetUserID(), myconnection)
|
|
|
 |
Benultra2
|
| Posted: 08/10/2004, 4:51 AM |
|
Sound like the page is not secured, so you could do three things;
1. You could secure the page, thus making the user login again.
2. You could test for CCGetUser() as below
if len(CCGetUserID()) > 0 then
include.user_name.Value = CCDLookUp("first_name","tblusers","user_id="&CCGetUserID(), myconnection)
end if
3. Store the UserID in a Cookie which will only timeout if they close all there brower windows.
Ben
|
|
|
 |
|