CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Session Timeout Redirect

Print topic Send  topic

Author Message
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

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.