Blank screen in webspeed

bohrmann

Member
Hi,When I use a webspeed application and the session expires, I get a blank screen instead of the login page. Is this a common feature or can I redirect the user to the login page somehow?Progress 9.1ESun SolarisThanks,Peter
 
I might have not been specific enough. So I suppose the problem comes from cookies, and I would like to know if I can influence this situation with coding or not.Regards,Peter
 
DEFINE VARIABLE m_sessionid AS CHARACTER NO-UNDO. DEFINE VARIABLE m_userloginname AS CHARACTER.
DEFINE VARIABLE m_userpassword AS CHARACTER.
/* Set Login Name & Password */
ASSIGN m_userloginname = getSessionAttribute("userloginname") NO-ERROR.
ASSIGN m_userpassword = getSessionAttribute("userpassword") NO-ERROR.

ASSIGN m_sessionid = ENTRY(1, get-field("stateinfo"), "|") NO-ERROR.
IF ENTRY(1, {&stateInfo}, "|") <> m_sessionid THEN
DO:
{&OUT} "<META HTTP-EQUIV='refresh' CONTENT='0;URL=" HostURL AppURL "/login/view_login.p?txt_login_result=" URL-ENCODE('Session Expired, Please Relogin.','') "'>".
END.
 
Thanks for the answer, but I have no idea, how these functions work in Progress (such as getSessionAttribute), what the parameters should be exactly. Furthermore where to put this fragment? In outputHeader perhaps?
 
Back
Top